Loading...
Extract Leaf Values
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
A config tree is stored as a nested dict and we need all the leaf values for validation. Traverse the dict to any depth and return all non-dict values as a flat list in traversal order.
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.