~/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.
Interview roadmap
Backtracking
Recursion that tries, undoes and tries again.
22 problems
Interview roadmap
Backtracking Recursion that tries, undoes and tries again.
- Play first: The Doom Tower 1-minute game Recursion
- All strings of 0s and 1s basics py · c++ · java easy
- Seating plan without feuding neighbours py · c++ · java easy
- Tower of Hanoi code the boss 2 levels py · c++ · java easy
- Subsets ▶ boss game py · c++ · java medium
- Permutations ▶ boss game py · c++ · java medium
- Generate Parentheses py · c++ · java medium
- Combination Sum ▶ boss game py · c++ · java medium
- N-Queens ▶ boss game py · c++ · java hard
More practice: 14 problems
- Split apples into two fair groups py · c++ · java easy
- Letter Combinations of a Phone Number py · c++ · java medium
- Combinations py · c++ · java medium
- Pandigital Sum Citadel py · c++ · java medium
- Currency Exchange CoinbaseOptiver py · c++ · java medium
- Subsets II py · c++ · java medium
- Word Search py · c++ · java medium
- Undo a run-length "say" encoding Pinterest py · c++ · java medium
- Combination Sum II py · c++ · java medium
- Palindrome Partitioning py · c++ · java medium
- Permutations II py · c++ · java medium
- Partition to K Equal Sum Subsets py · c++ · java medium
- Sudoku Solver ▶ boss game py · c++ · java hard
- Word Break II py · c++ · java hard