DSA interview in 6 weeks
One pattern a day, 196 hand-picked LeetCode problems, a review day every week and a mock interview at the end. Built on the 43 DSA Patterns.
Week 1 is free. Sign in to tick off problems as you go and keep your place on every device.
How it works
- 01
Learn one pattern. Each day starts with a recall tip, the theory, a diagram and a Python template you can reuse.
- 02
Solve the problems. Three to six LeetCode problems that use exactly that pattern. Tick them off as you go.
- 03
Review every seventh day. Re-solve one problem from each day, plus one from two weeks back, so earlier patterns stay sharp.
Week 1
Arrays, hashing and two pointers
The patterns behind most easy and medium array and string questions.
- Day 1Hashing: Frequency Count / Grouping1 pattern · 4 problems
- Day 2Two Pointer: Converging1 pattern · 4 problems
- Day 3Two Pointer: Fast & Slow1 pattern · 4 problems
- Day 4Two Pointer: In-place Array Modification and Fixed Separation2 patterns · 6 problems
- Day 5Two Pointer: String Comparison with Backspaces and String Reversal2 patterns · 5 problems
- Day 6Two Pointer: Expanding From Center1 pattern · 2 problems
- Day 7Week 1 review6 problems to re-solve
Week 2
Sliding window and binary search
Turn O(n²) scans into O(n), and search answers instead of arrays.
- Day 8Sliding Window: Fixed Size1 pattern · 4 problems
- Day 9Sliding Window: Variable Size and Character Frequency Matching2 patterns · 6 problems
- Day 10Sliding Window: Monotonic Queue for Max/Min1 pattern · 4 problems
- Day 11Binary Search: On Sorted Array/List and Find First/Last Occurrence2 patterns · 5 problems
- Day 12Binary Search: Find Min/Max in Rotated Sorted Array1 pattern · 4 problems
- Day 13Binary Search: On Answer / Condition Function and Median and Kth of Two Sorted Arrays2 patterns · 6 problems
- Day 14Week 2 review6 problems to re-solve
Week 3
Stacks, linked lists and heaps
Pointer surgery, monotonic stacks and top-k with heaps.
- Day 15Stack: Matching Brackets / Parentheses1 pattern · 4 problems
- Day 16Stack: Monotonic Stack1 pattern · 4 problems
- Day 17Stack: Expression Evaluation1 pattern · 4 problems
- Day 18Linked List: In-place Reversal and Merge / Sorted Operations2 patterns · 6 problems
- Day 19Heap / Priority Queue: Top K Elements1 pattern · 4 problems
- Day 20Heap / Priority Queue: Two Heaps1 pattern · 4 problems
- Day 21Week 3 review7 problems to re-solve
Week 4
Trees, tries and graphs
Traversals, BST properties, prefix trees and graph search.
- Day 22Tree: DFS1 pattern · 4 problems
- Day 23Tree: BFS1 pattern · 4 problems
- Day 24Tree: BST Properties and Prefix Matching2 patterns · 6 problems
- Day 25Graph: BFS and DFS2 patterns · 6 problems
- Day 26Graph: Topological Sort1 pattern · 4 problems
- Day 27Graph: Union Find1 pattern · 4 problems
- Day 28Week 4 review7 problems to re-solve
Week 5
Backtracking, greedy and bits
Search every option, or prove you only need the best one.
- Day 29Backtracking: Subsets / Combinations1 pattern · 4 problems
- Day 30Backtracking: Permutations1 pattern · 4 problems
- Day 31Backtracking: Grid / Board Search1 pattern · 4 problems
- Day 32Greedy: Interval Scheduling1 pattern · 4 problems
- Day 33Greedy: Kadane's / Jump Game1 pattern · 4 problems
- Day 34Bit Manipulation: XOR Tricks1 pattern · 4 problems
- Day 35Week 5 review7 problems to re-solve
Week 6
Dynamic programming and mock interview
The five DP shapes that cover most interview questions, then a full mock.
- Day 36Dynamic Programming: Fibonacci Pattern1 pattern · 4 problems
- Day 37Dynamic Programming: Knapsack / Subset Sum1 pattern · 4 problems
- Day 38Dynamic Programming: Longest Increasing Subsequence1 pattern · 4 problems
- Day 39Dynamic Programming: Longest Common Subsequence / String DP1 pattern · 4 problems
- Day 40Dynamic Programming: Grid Paths1 pattern · 4 problems
- Day 41Mock interview5 unseen problems · timed
- Day 42Final review6 problems to re-solve