Count Paths That Can Form a Palindrome in a Tree
A Hard coding interview problem in the Trees pattern.
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
- Dynamic Programming
- Bit Manipulation
- Tree
- Depth-First Search
- Bitmask
Practise Trees next
- 1Hard
- 2Hard
- 3Hard
- 4Hard
- 5Hard
- 6Hard
- 7Hard
- 8Hard