LeetCode patterns
Browse LeetCode problems by the algorithmic pattern an interviewer is really testing. Each problem comes with the key idea, a worked approach, reference solutions, and a step-by-step visualization.
- Two Pointers24
- Sliding Window15
- Prefix Sum7
- Binary Search20
- String9
- Sorting2
- Hash Map / Set22
- Stack / Queue12
- Monotonic Stack7
- Linked List18
- Fast & Slow Pointers7
- Tree / Recursion37
- BFS / DFS27
- Graph12
- Union-Find (Disjoint Set)6
- Topological Sort4
- Trie4
- Heap / Priority Queue16
- Intervals4
- Dynamic Programming55
- Backtracking20
- Greedy24
- Divide & Conquer4
- Math / Number Theory10
- Bit Manipulation10
- Design14
- Matrix / Grid8