Start Here: Your 90-Day DSA Interview Roadmap
Goal: Learn a repeatable way to solve interview problems, then use the 150-problem sequence from the supplied roadmap. The course groups problems by pattern so the idea is taught before practice; every problem lesson keeps its original problem number and study day.
How to use each lesson
- Read the goal and constraints in your own words. Open the linked LeetCode statement for the exact contract.
- Before reading the solution, state a brute-force approach and its cost.
- Identify the pattern and the invariant that makes the faster method safe.
- Work through the animated diagram, then trace the pseudocode on paper.
- Explain correctness and complexity aloud before coding.
- Implement the idea in your interview language and run the linked problem.
- Mark the lesson complete only after you can reproduce the approach without notes.
Interview routine: clarify, model, improve, prove, test
- Clarify: Ask about input size, duplicates, ordering, mutation, empty input, and output format.
- Model: Translate the story into an array, graph, tree, interval, or state transition.
- Baseline: Describe the simplest correct algorithm and its complexity.
- Improve: Find repeated work and match it to a data structure or pattern.
- Prove: State the loop invariant, exchange argument, or recurrence.
- Test: Trace the smallest input, a boundary case, and a case that breaks a naive solution.
Complexity you should be fluent with
| Growth | Typical meaning | |---|---| | O(1) | Fixed number of operations | | O(log n) | Repeatedly halve a search space | | O(n) | One or a constant number of passes | | O(n log n) | Comparison sorting or heap work | | O(n²) | Compare many pairs or fill an n×n table | | O(2ⁿ), O(n!) | Enumerate subsets or permutations; pruning matters |
Always state auxiliary space separately from output space.
Follow the original 90-day cadence
The sheet spaces 150 problems over 90 days and includes review sessions. Follow the day-by-day schedule below. Review days are deliberate: redo old problems from memory, explain the invariant, and change one edge case. On Day 89, solve the final problem, then revisit your five weakest problems; Day 90 is a timed mock interview.
Pseudocode conventions
Pseudocode is language-neutral: map means a key-value dictionary, set means unique membership, push/pop describe a stack/heap operation as named, and ranges are written explicitly. Translate details such as integer division, queue APIs, and overflow handling to your chosen language.
Common interview traps
- Start coding before confirming what “subarray”, “substring”, “subsequence”, or “path” means.
- State O(n) for an algorithm that sorts first; sorting usually costs O(n log n).
- Forget duplicate handling, zero/negative inputs, and off-by-one endpoints.
- Use a greedy rule without proving why discarding alternatives is safe.
- Give code without explaining the invariant and how it yields correctness.
The course contains all 150 numbered problems from the workbook. Problem statements live at their linked source; the lessons teach the concepts and provide original explanations and pseudocode rather than copying the full prompt.
The 90-day roadmap
Move through one week at a time. Practice days build the pattern library; each week ends with a planned review to bring earlier problems back from memory.
Week 01 · Days 01–07
- Day 01 · Practice — #1 Contains Duplicate · #2 Product of Array Except Self · #3 Valid Sudoku
- Day 02 · Practice — #4 Valid Anagram · #5 Two Sum · #6 Group Anagrams
- Day 03 · Practice — #7 Top K Frequent Elements · #8 Longest Consecutive Sequence
- Day 04 · Practice — #9 Subarray Sum Equals K
- Day 05 · Practice — #10 Valid Palindrome · #11 Two Sum II - Input Array Is Sorted
- Day 06 · Practice — #12 Sort Colors · #13 3Sum
- Day 07 · Review — redo Days 1-6
Week 02 · Days 08–14
- Day 08 · Practice — #14 Container With Most Water · #15 Trapping Rain Water
- Day 09 · Practice — #16 Best Time to Buy and Sell Stock · #17 Longest Substring Without Repeating Characters
- Day 10 · Practice — #18 Longest Repeating Character Replacement · #19 Permutation in String
- Day 11 · Practice — #20 Find All Anagrams in a String · #21 Minimum Window Substring
- Day 12 · Practice — #22 Sliding Window Maximum
- Day 13 · Practice — #23 Valid Parentheses · #24 Implement Queue using Stacks · #25 Min Stack
- Day 14 · Review — redo Days 8-13
Week 03 · Days 15–21
- Day 15 · Practice — #26 Evaluate Reverse Polish Notation · #27 Daily Temperatures
- Day 16 · Practice — #28 Generate Parentheses · #29 Car Fleet
- Day 17 · Practice — #30 Largest Rectangle in Histogram
- Day 18 · Practice — #31 Binary Search · #32 Find First and Last Position in Sorted Array
- Day 19 · Practice — #33 Search a 2D Matrix · #34 Koko Eating Bananas
- Day 20 · Practice — #35 Find Minimum in Rotated Sorted Array · #36 Search in Rotated Sorted Array
- Day 21 · Review — redo Days 15-20
Week 04 · Days 22–28
- Day 22 · Practice — #37 Time Based Key-Value Store · #38 Median of Two Sorted Arrays
- Day 23 · Practice — #39 Reverse Linked List · #40 Merge Two Sorted Lists · #41 Linked List Cycle
- Day 24 · Practice — #42 Palindrome Linked List · #43 Reorder List
- Day 25 · Practice — #44 Remove Nth Node From End of List · #45 Find the Duplicate Number
- Day 26 · Practice — #46 Add Two Numbers · #47 Copy List with Random Pointer
- Day 27 · Practice — #48 LRU Cache · #49 Merge K Sorted Lists
- Day 28 · Review — redo Days 22-27
Week 05 · Days 29–35
- Day 29 · Practice — #50 Reverse Nodes in K-Group
- Day 30 · Practice — #51 Invert Binary Tree · #52 Maximum Depth of Binary Tree · #53 Same Tree
- Day 31 · Practice — #54 Diameter of Binary Tree · #55 Balanced Binary Tree · #56 Subtree of Another Tree
- Day 32 · Practice — #57 Lowest Common Ancestor of a BST · #58 Binary Tree Level Order Traversal
- Day 33 · Practice — #59 Binary Tree Right Side View · #60 Count Good Nodes in Binary Tree
- Day 34 · Practice — #61 Validate Binary Search Tree · #62 Kth Smallest Element in a BST
- Day 35 · Review — redo Days 29-34
Week 06 · Days 36–42
- Day 36 · Practice — #63 Construct Binary Tree from Preorder and Inorder · #64 Binary Tree Maximum Path Sum
- Day 37 · Practice — #65 Serialize and Deserialize Binary Tree
- Day 38 · Practice — #66 Kth Largest Element in a Stream · #67 Last Stone Weight
- Day 39 · Practice — #68 K Closest Points to Origin · #69 Kth Largest Element in an Array
- Day 40 · Practice — #70 Task Scheduler · #71 Design Twitter
- Day 41 · Practice — #72 Find Median from Data Stream
- Day 42 · Review — redo Days 36-41
Week 07 · Days 43–49
- Day 43 · Practice — #73 Subsets · #74 Subsets II
- Day 44 · Practice — #75 Combination Sum · #76 Combination Sum II
- Day 45 · Practice — #77 Permutations · #78 Word Search
- Day 46 · Practice — #79 Palindrome Partitioning · #80 Letter Combinations of a Phone Number
- Day 47 · Practice — #81 N-Queens
- Day 48 · Practice — #82 Implement Trie (Prefix Tree) · #83 Design Add and Search Words Data Structure
- Day 49 · Review — redo Days 43-48
Week 08 · Days 50–56
- Day 50 · Practice — #84 Word Search II · #85 Number of Islands
- Day 51 · Practice — #86 Max Area of Island · #87 Clone Graph
- Day 52 · Practice — #88 Number of Provinces · #89 Rotting Oranges
- Day 53 · Practice — #90 Pacific Atlantic Water Flow · #91 Surrounded Regions
- Day 54 · Practice — #92 Course Schedule · #93 Course Schedule II
- Day 55 · Practice — #94 Redundant Connection · #95 Word Ladder
- Day 56 · Review — redo Days 50-55
Week 09 · Days 57–63
- Day 57 · Practice — #96 Network Delay Time · #97 Min Cost to Connect All Points
- Day 58 · Practice — #98 Cheapest Flights Within K Stops · #99 Swim in Rising Water
- Day 59 · Practice — #100 Reconstruct Itinerary
- Day 60 · Practice — #101 Climbing Stairs · #102 Min Cost Climbing Stairs
- Day 61 · Practice — #103 House Robber · #104 House Robber II
- Day 62 · Practice — #105 Longest Palindromic Substring · #106 Palindromic Substrings
- Day 63 · Review — redo Days 57-62
Week 10 · Days 64–70
- Day 64 · Practice — #107 Decode Ways · #108 Coin Change
- Day 65 · Practice — #109 Maximum Product Subarray · #110 Word Break
- Day 66 · Practice — #111 Longest Increasing Subsequence · #112 Partition Equal Subset Sum
- Day 67 · Practice — #113 Unique Paths · #114 Longest Common Subsequence
- Day 68 · Practice — #115 Coin Change II · #116 Target Sum
- Day 69 · Practice — #117 Best Time to Buy and Sell Stock with Cooldown · #118 Edit Distance
- Day 70 · Review — redo Days 64-69
Week 11 · Days 71–77
- Day 71 · Practice — #119 Interleaving String · #120 Longest Increasing Path in a Matrix
- Day 72 · Practice — #121 Distinct Subsequences · #122 Burst Balloons
- Day 73 · Practice — #123 Regular Expression Matching
- Day 74 · Practice — #124 Maximum Subarray · #125 Jump Game
- Day 75 · Practice — #126 Jump Game II · #127 Gas Station
- Day 76 · Practice — #128 Hand of Straights · #129 Merge Triplets to Form Target Triplet
- Day 77 · Review — redo Days 71-76
Week 12 · Days 78–84
- Day 78 · Practice — #130 Partition Labels · #131 Valid Parenthesis String
- Day 79 · Practice — #132 Insert Interval · #133 Merge Intervals
- Day 80 · Practice — #134 Non-overlapping Intervals · #135 Minimum Interval to Include Each Query
- Day 81 · Practice — #136 Rotate Image · #137 Spiral Matrix
- Day 82 · Practice — #138 Set Matrix Zeroes · #139 Happy Number
- Day 83 · Practice — #140 Plus One · #141 Pow(x, n)
- Day 84 · Review — redo Days 78-83
Week 13 · Days 85–90
- Day 85 · Practice — #142 Multiply Strings · #143 Detect Squares
- Day 86 · Practice — #144 Single Number · #145 Number of 1 Bits
- Day 87 · Practice — #146 Counting Bits · #147 Reverse Bits
- Day 88 · Practice — #148 Missing Number · #149 Sum of Two Integers
- Day 89 · Practice — #150 Reverse Integer (then redo your 5 weakest problems)
- Day 90 · Mock interview — 2 random Mediums + 1 Hard, 45 min each