Maximum Difference Between Node and Ancestor
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
- Tree
- Depth-First Search
- Binary Tree
Practise Trees next
- 1Medium
- 2Medium
- 3Medium
- 4Medium
- 5Medium
- 6Medium
- 7Medium
- 8Medium