Intro
This compilation contains several frequently-asked algorithms in interviews and its related LeetCode questions. This is like a note other than a complete and thorough instruction to follow. I recorded LeetCode questions that I’ve done and categorized them which may help you and myself as well to find questions in specific fields in a convenient way.
Fields
- DFS/Backtracking
- Tree
- BFS
- Double Pointers
- Sliding Window
- Bisection
- Stack
- Heap
- Union
- Topology
- Dynamic Programming
- Dijkstra
DFS/Backtracking
| Problem | Difficulty | Solution |
|---|---|---|
| LeetCode 46 | Med | See My Solution |
| LeetCode 78 | Med | See My Solution |
| LeetCode 39 | Med | See My Solution |
| LeetCode 79 | Med | See My Solution |
| LeetCode 22 | Med | See My Solution |
Tree
| Problem | Difficulty | My Solution |
|---|---|---|
| LeetCode 104 | Easy | See My Solution |
| LeetCode 110 | Easy | See My Solution |
| LeetCode 236 | Med | See My Solution |
| LeetCode 543 | Easy | See My Solution |
| LeetCode 98 | Med | See My Solution |
BFS
| Problem | Difficulty | My Solution |
|---|---|---|
| LeetCode 102 | Med | See My Solution |
| LeetCode 200 | Med | See My Solution |
| LeetCode 994 | Med | See My Solution |
| LeetCode 127 | Hard | See My Solution |
Double Pointer
| Problem | Difficulty | My Solution |
|---|---|---|
| LeetCode 167 | Med | See My Solution |
| LeetCode 15 | Med | See My Solution |
| LeetCode 11 | Med | See My Solution |
| LeetCode 141 | Easy | See My Solution |
Sliding Window
| Problem | Difficulty | My Solution |
|---|---|---|
| LeetCode 3 | Med | See My Solution |
| LeetCode 76 | Hard | See My Solution |
| LeetCode 209 | Med | See My Solution |
| LeetCode 424 | Med | See My Solution |
Bisection
| Problem | Difficulty | My Solution |
|---|---|---|
| LeetCode 704 | Easy | See My Solution |
| LeetCode 34 | Med | See My Solution |
| LeetCode 153 | Med | See My Solution |
| LeetCode 875 | Med | See My Solution |
Stack
| Problem | Difficulty | My Solution |
|---|---|---|
| LeetCode 739 | Med | See My Solution |
| LeetCode 84 | Hard | See My Solution |
| LeetCode 496 | Easy | See My Solution |
Heap
| Problem | Difficulty | My Solution |
|---|---|---|
| LeetCode 215 | Med | |
| LeetCode 347 | Med | |
| LeetCode 23 | Hard | |
| LeetCode 295 | Hard |
Union
| Problem | Difficulty | My Solution |
|---|---|---|
| LeetCode 547 | Med | |
| LeetCode 684 | Med | |
| LeetCode 721 | Med |
Topology
| Problem | Difficulty | My Solution |
|---|---|---|
| LeetCode 207 | Med | |
| LeetCode 210 | Med |
Dynamic Programming
| Problem | Difficulty | My Solution |
|---|---|---|
| LeetCode 70 | Easy | |
| LeetCode 198 | Med | |
| LeetCode 322 | Med | |
| LeetCode 300 | Med | |
| LeetCode 1143 | Med | |
| LeetCode 416 | Med |
Dijkstra
| Problem | Difficulty | My Solution |
|---|---|---|
| LeetCode 3650 | Med | See My Solution |
| LeetCode 743 | Med | See My Solution |
| LeetCode 1631 | Med | See My Solution |