TOPIC
TREE RECURSION
Every tree recursion problem in the series, in the order the worlds teach them.
15 STAGES
EASY2:02Invert Binary Tree
LC 226▶ START
EASY2:04Maximum Depth of Binary Tree
LC 104▶ START
EASY2:07Same Tree
LC 100▶ START
EASY1:55Symmetric Tree
LC 101▶ START
EASY2:08Diameter of Binary Tree
LC 543▶ START
EASY2:03Balanced Binary Tree
LC 110▶ START
EASY2:06Subtree of Another Tree
LC 572▶ START
MEDIUM2:08Validate BST
LC 98▶ START
MEDIUM2:03Count Good Nodes in Binary Tree
LC 1448▶ START
EASY2:04Convert Sorted Array to Binary Search Tree
LC 108▶ START
MEDIUM2:07Lowest Common Ancestor
LC 236▶ START
MEDIUM2:08Construct Binary Tree from Preorder and Inorder Traversal
LC 105▶ START
MEDIUM2:02Flatten Binary Tree to Linked List
LC 114▶ START
HARD2:00Binary Tree Maximum Path Sum
LC 124▶ START
HARD2:03Binary Tree Cameras
LC 968▶ START
More topics
- Dynamic programming 20
- Backtracking 19
- Greedy 19
- Bit manipulation 10
- Two pointers 10
- Design 8
- Binary search 7
- Breadth-first search 7
- Hash map 7
- Heap 7
- Linked list 5
- Fast and slow pointers 4
- Grid search 4
- Shortest path 4
- Sliding window 4
- Depth-first search 3
- Math 3
- Monotonic stack 3
- Carry 2
- Counting 2
- Expand around centre 2
- Hash set 2
- Matrix 2
- Prefix sums 2
- Sorting 2
- Stack 2
- Topological sort 2
- Trie 2