The Slow Leak
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 metrics rollup arrives in `nested`: a list where each element is either a leaf reading or another sub-group, with sub-groups nested to arbitrary depth. Return one flat list of every reading in left-to-right order. Treat a string as a single reading that stays intact rather than splitting into characters, and let an empty sub-group contribute nothing.
Summary
Nested groups. One flat stream.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.