DSA roadmap for placements
A data-structures-and-algorithms roadmap for placements: 19 stages, a tutorial for every topic with code in four languages, and about 150 curated problems.
What is the CodeKairo DSA roadmap?
The DSA roadmap is a guided path through data structures and algorithms: 19 stages in four tiers — Foundations, Core techniques, Advanced and Mastery — over about 150 curated problems, from Arrays 101, Hashing and Two Pointers through Binary Search, Heaps, Graphs and Dynamic Programming to a Capstone. A stage is cleared by getting accepted submissions on its required number of problems (usually 6 of 8), and a stage opens only when the one before it is cleared. Progress is derived from your real submissions, wherever they were made. Every tier ends in a chest paying XP and one to three bonus mock-interview sessions; finishing the road unlocks a certificate. Every stage also has its lessons — about 35 tutorials, from Big-O notation and Two Pointers to Dijkstra's Algorithm and the 0/1 Knapsack Problem — each explaining its technique with a dry run and runnable code in C++, Java, Python and JavaScript. The map and every lesson can be read without an account.
A week-by-week plan
At about 2 problems a day, five days a week, the road takes 19 weeks — about 5 months — counting only the solves each stage needs to clear. Most placement seasons start in the final year, so starting in the pre-final year's second half leaves room to revise.
| Weeks | Stage | Solves to clear |
|---|---|---|
| Week 1 | 1. Arrays 101 | 6 |
| Week 2 | 2. Hashing | 6 |
| Week 3 | 3. Strings | 6 |
| Week 4 | 4. Two Pointers | 6 |
| Week 5 | 5. Sliding Window | 6 |
| Week 6 | 6. Prefix Sums | 6 |
| Week 7 | 7. Stacks | 6 |
| Week 8 | 8. Binary Search | 6 |
| Week 9 | 9. Sorting & Greedy | 6 |
| Week 10 | 10. Intervals | 6 |
| Week 11 | 11. Heaps | 6 |
| Week 12 | 12. Matrix & Grids | 6 |
| Week 13 | 13. Bit Manipulation | 6 |
| Week 14 | 14. Recursion & Backtracking | 6 |
| Week 15 | 15. Graphs: BFS & DFS | 6 |
| Week 16 | 16. Graphs: Advanced | 6 |
| Week 17 | 17. Dynamic Programming I | 6 |
| Week 18 | 18. Dynamic Programming II | 6 |
| Week 19 | 19. Capstone | 4 |
The road, stage by stage
Foundations
Arrays, hashing, strings and the two-pointer family. Everything after this assumes them. The chest at the end pays 30 XP and 1 bonus mock interview.
Stage 1: Arrays 101
Indexing, running totals, single passes — the habits every later stage relies on. Cleared at 6 of 8 solved.
Learn: Time and Space Complexity (Big-O Notation) · Arrays
- Running Sum of 1d Array Easy
- Concatenation of Array Easy
- Build Array from Permutation Easy
- Richest Customer Wealth Easy
- Contains Duplicate Easy
- Best Time to Buy and Sell Stock Easy
- Maximum Subarray Medium
- Product of Array Except Self Medium
Stage 2: Hashing
Trade memory for time: counting, lookups and the one-pass two-sum. Cleared at 6 of 8 solved.
Learn: Hashing: Hash Maps and Hash Sets
- Two Sum Easy
- Jewels and Stones Easy
- First Unique Character in a String Easy
- Majority Element Easy
- Isomorphic Strings Easy
- Find All Numbers Disappeared in an Array Easy
- Longest Consecutive Sequence Medium
- Top K Frequent Elements Medium
Stage 3: Strings
Scanning, building and comparing text without allocating your way out of it. Cleared at 6 of 8 solved.
Learn: Strings
- Reverse String Easy
- Valid Palindrome Easy
- Longest Common Prefix Easy
- Length of Last Word Easy
- Is Subsequence Easy
- Merge Strings Alternately Easy
- String Compression Medium
- Longest Palindromic Substring Medium
Stage 4: Two Pointers
Two indices, one pass: the technique behind most sorted-array problems. Cleared at 6 of 8 solved.
Learn: Two Pointers Technique
- Move Zeroes Easy
- Squares of a Sorted Array Easy
- Remove Duplicates from Sorted Array Easy
- Merge Sorted Array Easy
- Two Sum II - Input Array Is Sorted Medium
- 3Sum Medium
- Container With Most Water Medium
- Trapping Rain Water Hard
Stage 5: Sliding Window
Grow and shrink a window over the input instead of restarting the scan. Cleared at 6 of 8 solved.
Learn: Sliding Window Technique
- Minimum Difference Between Highest and Lowest of K Scores Easy
- Contains Duplicate II Easy
- Longest Substring Without Repeating Characters Medium
- Max Consecutive Ones III Medium
- Minimum Size Subarray Sum Medium
- Permutation in String Medium
- Longest Repeating Character Replacement Medium
- Minimum Window Substring Hard
Stage 6: Prefix Sums
Precompute once, answer range questions in constant time. Cleared at 6 of 8 solved.
Learn: Prefix Sum · Kadane's Algorithm (Maximum Subarray Sum)
- Find Pivot Index Easy
- Find the Highest Altitude Easy
- Left and Right Sum Differences Easy
- Sum of All Odd Length Subarrays Easy
- Subarray Sum Equals K Medium
- Contiguous Array Medium
- Continuous Subarray Sum Medium
- Car Pooling Medium
Core techniques
The data structures and search patterns most interview rounds are built on. The chest at the end pays 50 XP and 1 bonus mock interview.
Stage 7: Stacks
Last in, first out — matching, evaluating and the monotonic stack. Cleared at 6 of 8 solved.
Learn: Linked Lists · Stack Data Structure · Queues and Deques · Monotonic Stack
- Valid Parentheses Easy
- Baseball Game Easy
- Remove All Adjacent Duplicates In String Easy
- Next Greater Element I Easy
- Evaluate Reverse Polish Notation Medium
- Daily Temperatures Medium
- Decode String Medium
- Largest Rectangle in Histogram Hard
Stage 8: Binary Search
Halve the space every step — on arrays, on answers, on rotated inputs. Cleared at 6 of 8 solved.
Learn: Binary Search · Binary Search on the Answer
- Binary Search Easy
- Search Insert Position Easy
- Sqrt(x) Easy
- Find First and Last Position of Element in Sorted Array Medium
- Search in Rotated Sorted Array Medium
- Find Minimum in Rotated Sorted Array Medium
- Koko Eating Bananas Medium
- Capacity To Ship Packages Within D Days Medium
Stage 9: Sorting & Greedy
Order the input, then take the locally best step and prove it holds. Cleared at 6 of 8 solved.
Learn: Sorting Algorithms · Greedy Algorithms
- Assign Cookies Easy
- Lemonade Change Easy
- Largest Perimeter Triangle Easy
- Sort Colors Medium
- Jump Game Medium
- Gas Station Medium
- Partition Labels Medium
- Task Scheduler Medium
Stage 10: Intervals
Sort by start, sweep, merge — the pattern behind every scheduling question. Cleared at 6 of 8 solved.
Learn: Interval Problems: Merge, Insert and Sweep
- Meeting Rooms Easy
- Merge Intervals Medium
- Insert Interval Medium
- Non-overlapping Intervals Medium
- Minimum Number of Arrows to Burst Balloons Medium
- Interval List Intersections Medium
- Meeting Rooms II Medium
- Minimum Number of Platforms Medium
Stage 11: Heaps
Keep the k best in reach: priority queues for top-k, scheduling and streams. Cleared at 6 of 8 solved.
Learn: Binary Trees and Tree Traversals · Binary Search Tree (BST) · Heaps and Priority Queues · Trie (Prefix Tree)
- Last Stone Weight Easy
- Relative Ranks Easy
- Kth Largest Element in an Array Medium
- K Closest Points to Origin Medium
- Sort Characters By Frequency Medium
- Ugly Number II Medium
- Furthest Building You Can Reach Medium
- Sliding Window Maximum Hard
Stage 12: Matrix & Grids
Two-dimensional indexing, in-place transforms and the first grid walks. Cleared at 6 of 8 solved.
Learn: Matrix and Grid Traversal
- Transpose Matrix Easy
- Matrix Diagonal Sum Easy
- Flood Fill Easy
- Spiral Matrix Medium
- Rotate Image Medium
- Set Matrix Zeroes Medium
- Search a 2D Matrix Medium
- Game of Life Medium
Advanced
Bits, recursion and graphs — where the harder rounds start. The chest at the end pays 80 XP and 2 bonus mock interviews.
Stage 13: Bit Manipulation
Masks, shifts and XOR tricks — small problems with elegant answers. Cleared at 6 of 8 solved.
Learn: Bit Manipulation
- Number of 1 Bits Easy
- Single Number Easy
- Missing Number Easy
- Counting Bits Easy
- Power of Two Easy
- Hamming Distance Easy
- Sum of Two Integers Medium
- Single Number II Medium
Stage 14: Recursion & Backtracking
Build the answer one choice at a time and undo the ones that fail. Cleared at 6 of 8 solved.
Learn: Recursion · Backtracking
- Subsets Medium
- Permutations Medium
- Combinations Medium
- Combination Sum Medium
- Generate Parentheses Medium
- Letter Combinations of a Phone Number Medium
- Word Search Medium
- Target Sum Medium
Stage 15: Graphs: BFS & DFS
Islands, rooms and reachability — the two traversals every graph question starts from. Cleared at 6 of 8 solved.
Learn: Graph Data Structure · Breadth-First Search (BFS) · Depth-First Search (DFS)
- Find if Path Exists in Graph Easy
- Number of Islands Medium
- Max Area of Island Medium
- Rotting Oranges Medium
- Keys and Rooms Medium
- Number of Provinces Medium
- Pacific Atlantic Water Flow Medium
- Surrounded Regions Medium
Stage 16: Graphs: Advanced
Topological order, union-find, shortest paths and spanning trees. Cleared at 6 of 8 solved.
Learn: Topological Sort · Union-Find (Disjoint Set Union) · Dijkstra's Algorithm · Minimum Spanning Tree: Kruskal's and Prim's Algorithms
- Course Schedule Medium
- Course Schedule II Medium
- Redundant Connection Medium
- Number of Connected Components in an Undirected Graph Medium
- Network Delay Time Medium
- Min Cost to Connect All Points Medium
- Cheapest Flights Within K Stops Medium
- Word Ladder Hard
Mastery
Dynamic programming and the capstone: the problems that decide the final round. The chest at the end pays 100 XP and 3 bonus mock interviews.
Stage 17: Dynamic Programming I
One-dimensional state: stairs, robbers, coins and the longest increasing run. Cleared at 6 of 8 solved.
Learn: Dynamic Programming · Longest Increasing Subsequence (LIS)
- Climbing Stairs Easy
- Min Cost Climbing Stairs Easy
- Fibonacci Number Easy
- House Robber Medium
- House Robber II Medium
- Coin Change Medium
- Longest Increasing Subsequence Medium
- Decode Ways Medium
Stage 18: Dynamic Programming II
Grids and two strings: paths, edit distance, subsequences and palindromes. Cleared at 6 of 8 solved.
Learn: 0/1 Knapsack Problem · Longest Common Subsequence and Edit Distance
- Unique Paths II Medium
- Minimum Path Sum Medium
- Longest Common Subsequence Medium
- Edit Distance Medium
- Maximal Square Medium
- Partition Equal Subset Sum Medium
- Palindromic Substrings Medium
- Regular Expression Matching Hard
Stage 19: Capstone
Hard problems only. Clear four of these and the road is yours. Cleared at 4 of 8 solved.
How it works
- Read the stage's lessons. Each stage lists its tutorials above its problems: the idea, why it works, a dry run, code in four languages, common mistakes and what to practise. Lessons are never locked, so you can read ahead.
- Start at Foundations. Only the first stage is open. Its problems open from the road, and the workbench keeps a link back to it with previous and next problems walking the stage.
- Clear stages in order. An accepted solution on enough of a stage's problems clears it and opens the next one. Solves made from the catalogue, a duel, the daily contest or a pair room count too.
- Open the chests. When every stage of a tier is cleared its chest opens once, paying the tier's XP to both XP and rating plus bonus mock-interview credits that never expire. Each chest is a badge on your profile and a frame on your avatar.
Who it is for
Learners who want an order to the DSA syllabus instead of a flat list of problems, and interview candidates who want to know exactly which topics are left.