Top-Heavy
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L3
Problem
A console report renders a quick text gauge from a single count: given a positive integer `n`, return `n` lines of asterisks where the first line is the widest with `n` of them and every line below loses one, ending at a single asterisk.
Summary
The widest row leads, and everything below it narrows.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.