~/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
Two pointers
Scan from both ends, or fast and slow.
17 problems
Interview roadmap
Two pointers Scan from both ends, or fast and slow.
- Play first: Two Knights, One Bridge 1-minute game Two pointers
- Reverse a list in place basics py · c++ · java easy
- Match photos to GPS readings py · c++ · java easy
- Remove Duplicates from Sorted Array py · c++ · java easy
- Valid Palindrome py · c++ · java easy
- Two Sum II code the boss py · c++ · java medium
- 3Sum py · c++ · java medium
- Container with Most Water ▶ boss game py · c++ · java medium
- Sort Colors ▶ boss game py · c++ · java medium
More practice: 9 problems
- Valid Palindrome II py · c++ · java easy
- Count subarrays with a target sum (positive values) py · c++ · java easy
- Merge Sorted Array py · c++ · java easy
- Rotate Array py · c++ · java medium
- Next Permutation py · c++ · java medium
- Three positions with a target sum py · c++ · java medium
- Boats to Save People py · c++ · java medium
- 4Sum py · c++ · java medium
- As-of join of two time series Headlands py · c++ · java medium