Loading...
Deep Flatten
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
Our API responses occasionally return arbitrarily nested list structures that downstream consumers expect flat. Flatten a deeply nested list into a single list of all leaf values, regardless of nesting depth.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.