~/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
Search tricks
Ternary search, meet in the middle.
9 problems
Advanced & competitive
Search tricks Ternary search, meet in the middle.
Ternary search
- Peak of a unimodal function on reals basics py · c++ · java easy
- When is the drone closest to the beacons? py · c++ · java easy
- Peak of a mountain array py · c++ · java medium
- Minimize a black-box convex function Uber py · c++ · java medium
- When to leave the elevator Uber py · c++ · java medium
Meet in the middle
- Subset sums of two halves basics py · c++ · java easy
- Trail mix with two exact targets py · c++ · java medium
- Count subsets with a target sum py · c++ · java hard
- Subset sum closest to a goal py · c++ · java hard