cnq2k_NhatQuang retweeted
9 LeetCode articles that will help you get ready for your next coding interview:
1. Two Pointers Patterns:
leetcode.com/discuss/study-g…
2. Binary Search Patterns:
leetcode.com/discuss/study-g…
3. Dynamic Programming Patterns:
leetcode.com/discuss/post/45…
4. Graph Problems for beginners: leetcode.com/discuss/study-g…
5. Bits Manipulation Patterns leetcode.com/discuss/intervi…
6. Backtracking Questions Template:
leetcode.com/problems/permut…
7. Substring problems Template: leetcode.com/problems/minimu…
8. Monotonic Stack/Queue Questions: leetcode.com/problems/shorte…
9. Union-Find Guide:
leetcode.com/discuss/post/10…
You don’t need to solve everything on LeetCode. You need to master these 20.
Core Data Structures:
1. Arrays & Strings (two pointers, prefix sums)
2. Hash Maps & Sets (frequency, lookup optimization)
3. Stack (monotonic stack, valid parentheses)
4. Queue & Deque (sliding window)
5. Linked Lists (reverse, cycle detection)
Recursion & Trees:
6. Recursion basics & backtracking
7. Binary Trees (DFS, BFS)
8. Binary Search Trees (insert, delete, validate)
9. Tree Traversals (pre/in/post/level order)
10. Lowest Common Ancestor
Searching & Sorting:
11. Binary Search (classic + variants)
12. Sorting algorithms (merge, quick, custom comparators)
13. Kth largest / Top K problems
14. Heap / Priority Queue usage
Dynamic Programming:
15. 1D DP (climbing stairs, house robber)
16. 2D DP (grid paths, knapsack)
17. Subsequence / substring DP patterns
Graphs & Advanced Patterns:
18. Graph Traversal (BFS, DFS, cycle detection)
19. Topological Sort (dependencies, scheduling)
20. Union-Find (connected components)
If you can identify patterns, explain trade-offs, and code cleanly,
most DSA parts stop being scary and start feeling repetitive.
LeetCode is HARD until you Learn these 15 Patterns:
1. Prefix Sum
2. Two Pointers
3. Sliding Window
4. Fast & Slow Pointers
5. LinkedList In-place Reversal
6. Monotonic Stack
7. Top ‘K’ Elements
8. Overlapping Intervals
9. Modified Binary Search
10. Binary Tree Traversal
11. Depth-First Search (DFS)
12. Breadth-First Search (BFS)
13. Matrix Traversal
14. Backtracking
15. Dynamic Programming Patterns



