~/problems
Problems
Basics first, then the classics, then company-style assessments. Every problem has tests you run right here; multi-level ones unlock as you go. See the roadmap.
Advanced & competitive
Tree techniques
Binary lifting, LCA, Euler tours.
8 problems
Advanced & competitive
Tree techniques Binary lifting, LCA, Euler tours.
Binary lifting / LCA
- Build the jump table basics py · c++ · java easy
- Earliest ancestor born since a year py · c++ · java medium
- K-th ancestor queries py · c++ · java hard
- Lowest common boss py · c++ · java hard
Euler tour of a tree
- Entry and exit times basics py · c++ · java easy
- Upstream or downstream? py · c++ · java easy
- Subtree sums with updates py · c++ · java medium
- Root-to-node path sums with updates py · c++ · java medium