Trees
Traversals, BSTs, and recursive tree walks.
Traversal
Depth-first and breadth-first visit orders.
- Tree Traversals (Easy)
Prefix trees
Tries for word insert and search.
Checkpoint
A graded check on recursive subtrees, traversal order, and tries.
Pattern Quest
Practice recognizing trees problem shapes.
Trees
Practice recursive subtree contracts, traversal orders, binary-search-tree invariants, path aggregation, and level-by-level reasoning over branching structures.
- Balanced Binary Tree (Easy)
- Binary Search Tree Iterator (Medium)
- Binary Tree Level Order Traversal (Medium)
- Binary Tree Maximum Path Sum (Hard)
- Binary Tree Right Side View (Medium)
- Binary Tree Traversal Iteratively (Medium)
- Binary Tree Vertical Order Traversal (Medium)
- Binary Tree Zigzag Level Order Traversal (Medium)
- Check Completeness of a Binary Tree (Medium)
- Convert Binary Search Tree to Sorted Doubly Linked List (Medium)
- Convert Binary Tree to Doubly Linked List (Medium)
- Convert Sorted Array to BST (Easy)
- Convert Sorted Linked List to BST (Medium)
- Count Good Nodes in Binary Tree (Medium)
- Diameter of Binary Tree (Easy)
- Find Distance of Two Nodes in a Binary Tree (Medium)
- Find Kth Largest in BST (Medium)
- Find Leaves of Binary Tree (Medium)
- Inorder Successor in BST (Medium)
- Invert Binary Tree (Easy)
- Longest Path With Different Adjacent Characters (Hard)
- Lowest Common Ancestor of a Binary Tree (Medium)
- Lowest Common Ancestor of a Binary Tree III (Medium)
- Maximum Depth of Binary Tree (Easy)
- Monarchy Succession Order (Medium)
- N-ary Tree Diameter (Medium)
- N-ary Tree Distance of Two Nodes (Medium)
- N-ary Tree Height (Easy)
- N-ary Tree Level Order (Medium)
- N-ary Tree Lowest Common Ancestor (Medium)
- N-ary Tree Traversal Iteratively (Easy)
- Populate Next Pointers to Right (Medium)
- Print All Root to Leaf Paths (Easy)
- Print Leaves (Easy)
- Recover Binary Search Tree (Medium)
- Serialize and Deserialize Binary Tree (Hard)
- Step-By-Step Directions From a Binary Tree Node to Another (Medium)
- Subtree of Another Tree (Easy)
- Sum of Nodes (Easy)
- Symmetric Tree (Easy)
- Validate Binary Search Tree (Medium)
- Vertical Order Traversal of a Binary Tree (Hard)