Flatten Nested List Iterator
A Medium coding interview problem in the Trees pattern.
MediumPractise in Recode
Likely pattern
Recursive DFS and level-order BFS over hierarchical data.
Recognition cue: A binary tree or BST: depth, paths, ancestors, or level-by-level processing.
- Learn first
- Do not confuse it with
Topics
- Stack
- Tree
- Depth-First Search
- Design
- Queue
- Iterator
Practise Trees next
- 1Medium
- 2Medium
- 3Medium
- 4Medium
- 5Medium
- 6Medium
- 7Medium
- 8Medium