~/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
Linked lists
Reverse, merge, detect cycles, build an LRU cache.
22 problems
Interview roadmap
Linked lists Reverse, merge, detect cycles, build an LRU cache.
Linked lists guide
- Play first: The Chain 1-minute game Reversing a linked list
- Middle node with fast and slow pointers basics py · c++ · java easy
- Shunt the extra wagons onto a siding py · c++ · java easy
- Reverse Linked List code the boss py · c++ · java easy
- Merge Two Sorted Lists py · c++ · java easy
- Remove Nth Node from End of List py · c++ · java medium
- Where does the cycle start? ▶ boss game py · c++ · java medium
- Reorder List py · c++ · java medium
- Reverse Nodes in k-Group py · c++ · java hard
More practice: 8 problems
- Linked List Cycle py · c++ · java easy
- Intersection of Two Linked Lists py · c++ · java easy
- Palindrome Linked List py · c++ · java easy
- Add Two Numbers py · c++ · java medium
- Reverse Linked List II py · c++ · java medium
- Design Circular Queue py · c++ · java medium
- Copy List with Random Pointer py · c++ · java medium
- Find the Duplicate Number py · c++ · java medium
LRU / LFU cache guide
- Play first: The Full Inventory 1-minute game LRU cache (least recently used)
- A recency list basics py · c++ · java easy
- Recent files menu py · c++ · java easy
- LRU Cache code the boss py · c++ · java medium
- LFU Cache py · c++ · java hard
- LRU, LFU, then a pluggable eviction policy assessment 3 levels Citadel py · c++ · java hard
- LRU cache with TTL and weighted size assessment 3 levels Snapchat py · c++ · java hard