← Interview Preparation

DSA Interview Roadmap

A definitive, no-fluff path through Data Structures & Algorithms for Senior Software Engineer interviews at FAANG-level companies — ordered so every topic builds on the one before it.

How to use this roadmap

  • Go through topics top to bottom on your first pass — later topics (graphs, DP) lean on patterns from earlier ones (traversal, recursion, two pointers).
  • Read the theory for a subtopic before touching its problems. The goal is pattern recognition, not memorized solutions.
  • Respect the time box on each problem. If you're stuck past the allotted time, read the editorial/solution, understand it fully, and move on — revisit it later.
  • This is a senior-level bar: depth and the ability to explain trade-offs matter more than raw problem count. Quality of understanding beats quantity grinded.
  • Note on 2026 interview loops: several FAANG companies have added AI-assisted coding rounds and shifted senior loops toward system design and judgement. That makes rock solid DSA fundamentals a baseline expectation, not the whole story — but you still cannot pass without them.

Your Progress

0%
0 / 309Problems solved
0h / 235hTime invested
57Subtopics across 21 topics
Problems/day to hit deadline
Time/day to hit deadline
Solved by difficulty
0/391
0/862
0/1243
0/504
0/105
Progress by topic
Interview Foundations
0/12
Arrays & Hashing
0/27
Two Pointers
0/23
Sliding Window
0/15
Stack
0/24
Binary Search
0/23
Sorting Algorithms
0/12
Linked List
0/14
Design Problems
0/5
Trees
0/27
Tries
0/8
Heaps & Priority Queues
0/16
Backtracking
0/21
Graphs
0/39
Dynamic Programming
0/38
Greedy
0/10
Intervals
0/11
Bit Manipulation
0/9
Math & Geometry
0/9
Advanced String Algorithms
0/4
Advanced Niche Algorithms
0/19

Interview Countdown

Set your interview date to see a countdown.

Next Problem

Loading…

0Come Back Later

The Roadmap

  1. 1

    The vocabulary and process you'll reuse in every single topic that follows.

    1. 1.1Big-O & Complexity Analysis!!!1/52h 5m
    2. 1.2Recursion & the Call Stack!!2/52h 30m
    3. 1.3The Problem-Solving Framework & Interview Communication!!1/51h 35m
  2. 2

    The substrate everything else is built on: linear scans, prefix precomputation, O(1) lookups via hashing, and what's actually happening inside that hash table.

    1. 2.1Arrays, Subarrays & Prefix Sums!!2/55h 35m
    2. 2.2Hash Maps & Hash Sets!!!2/56h 5m
    3. 2.3Hash Table Internals & the Birthday Paradox!!2/52h 15m
    4. 2.4Randomized Sampling & Shuffling!3/52h 10m
  3. 3

    Two indices, one pass: the pattern that turns quadratic pair-and-position problems into linear ones.

    1. 3.1Opposite-Direction Two Pointers!!!2/57h 15m
    2. 3.2Fast & Slow Pointers!!2/53h 50m
  4. 4

    Turn O(n²) brute-force scans over every subarray or substring into a single O(n) pass by reusing work between neighboring windows.

    1. 4.1Fixed-Size Sliding Window!!2/54h 15m
    2. 4.2Variable-Size (Flexible) Sliding Window!!!3/55h 40m
  5. 5

    The LIFO discipline that turns nested structures, backtracking parentheses, and 'next greater element' scans into linear-time one-pass algorithms.

    1. 5.1Monotonic Stack!!!3/56h 30m
    2. 5.2Stack Simulation, Parsing & Expression Evaluation!!2/57h 15m
  6. 6

    The highest-leverage O(log n) trick in the entire roadmap — trivial to describe, notoriously easy to get wrong at the boundaries.

    1. 6.1Binary Search Fundamentals!!!2/54h 55m
    2. 6.2Binary Search on the Answer Space!!3/56h 55m
    3. 6.3Search Variants, Galloping Search & Range Queries!3/52h 35m
  7. 7

    The primitive everything else quietly depends on — from Heaps' quickselect to Intervals' sweep line.

    1. 7.1Comparison Sorts: Insertion, Bubble, Selection, Merge & Heapsort!!2/53h 10m
    2. 7.2Quicksort, Partitioning & the Dutch National Flag!!3/52h 55m
    3. 7.3Counting Sort, Radix Sort & the Comparison-Sort Lower Bound!3/52h 45m
  8. 8

    Master pointer manipulation — the discipline where losing a single reference silently corrupts your entire data structure.

    1. 8.1Core Linked List Techniques!!!2/53h 20m
    2. 8.2Advanced Linked List Manipulation & Design!!3/56h 5m
  9. 9

    Compose two or three simple structures to satisfy several O(1)/O(log n) requirements at once -- the same instinct behind LRU/LFU cache, applied to streaming windows.

    1. 9.1Ring Buffers & Streaming Window Designs!2/53h
  10. 10

    The first genuinely recursive data structure on this roadmap — and the training ground for the recursive thinking you'll reuse in Backtracking, Graphs, and DP on Trees.

    1. 10.1Binary Tree Traversals (DFS & BFS)!!!2/53h 40m
    2. 10.2Binary Search Trees!!!2/54h 35m
    3. 10.3Tree Construction & Serialization!!3/54h 40m
    4. 10.4Advanced Tree Patterns (LCA, Diameter, Paths)!!4/53h 30m
  11. 11

    A tree shaped by shared prefixes, turning prefix-based string queries into O(L) walks instead of O(n) scans.

    1. 11.1Tries (Prefix Trees)!!3/55h 5m
  12. 12

    Turn "give me the current min or max, fast" into a reflex, and learn to recognize the three heap shapes — top-K, two-heaps, and k-way merge — that cover most FAANG heap questions.

    1. 12.1Heap Fundamentals & Top-K Pattern!!!2/53h 55m
    2. 12.2Two Heaps Pattern!!3/52h 45m
    3. 12.3K-Way Merge Pattern!!3/54h
  13. 13

    Exhaustive search done right: build a candidate one choice at a time, undo cleanly, and prune hard.

    1. 13.1Subsets & Combinations!!3/54h 40m
    2. 13.2Permutations!!3/53h 30m
    3. 13.3Constraint Satisfaction Search (N-Queens, Sudoku, Word Search)!4/53h 35m
  14. 14

    The roadmap's biggest topic: one model — vertices and edges — that unifies traversal, invented state spaces, ordering, connectivity, and shortest paths into a single interview-ready toolkit.

    1. 14.1Graph Representation & Traversal (BFS/DFS)!!!2/56h 10m
    2. 14.2State-space & Implicit Graph BFS!!!4/54h 35m
    3. 14.3Topological Sort & Eulerian Paths!!!3/55h 30m
    4. 14.4Union-Find (Disjoint Set Union)!!!3/54h 20m
    5. 14.5Shortest Paths (Dijkstra, Bellman-Ford, Floyd-Warshall)!!4/56h 15m
  15. 15

    The topic that decides more FAANG interview outcomes than any other — not because it's obscure, but because deriving a recurrence under pressure is a fundamentally different skill than recognizing a pattern.

    1. 15.1DP Foundations & 1-D DP!!!3/57h 40m
    2. 15.2Knapsack Patterns (0/1, Unbounded, Subset-Sum)!!4/56h 20m
    3. 15.32-D DP & String DP (LCS, Edit Distance)!!!4/56h 50m
    4. 15.4State-Machine DP (Stock Trading & Beyond)!4/54h 5m
    5. 15.5DP on Trees & Graphs!!5/53h 55m
  16. 16

    Make the locally best choice and never look back — but only after you can prove it can't lose.

    1. 16.1Greedy Algorithms!!3/56h 20m
  17. 17

    Sort, then sweep: one template collapses merging, scheduling, and max-overlap problems into a single linear scan.

    1. 17.1Intervals & Sweep Line!!!3/56h 10m
  18. 18

    A small set of XOR, mask, and shift identities that turn O(n)-space hash-set solutions into true O(1)-space, single-pass tricks.

    1. 18.1Bit Manipulation!2/54h 30m
  19. 19

    The low-frequency, high-annoyance-when-you-flub-it topic: number theory, matrix manipulation, and geometry, all trimmed to what interviewers actually ask.

    1. 19.1Math & Geometry Essentials!2/54h 35m
  20. 20

    Palindromic substrings via expand-around-center — the one "advanced strings" technique that's a genuine, frequent Senior+ FAANG staple rather than a from-scratch-algorithm party trick.

    1. 20.1Palindromic Substrings (Expand Around Center)!!!2/52h 15m
  21. 21

    Optional — real algorithms that are genuinely rare in Senior+ FAANG coding rounds. Skip this whole topic with zero risk unless your target loop is known to be algorithm-heavy (Google, competitive-programming-adjacent teams, some quant/HFT shops).

    1. 21.1Skip Lists & Ordered Structures~3/52h 10m
    2. 21.2Fenwick Trees & Segment Trees (Range Queries with Updates)~4/52h
    3. 21.3Recursive Descent Parsing & Heuristic Search~4/53h 5m
    4. 21.4Minimum Spanning Tree (Prim's & Kruskal's)~4/52h 40m
    5. 21.5Interval DP~5/52h 15m
    6. 21.6Huffman Coding & Optimal Caching~3/51h 55m
    7. 21.7Closest Pair & Convex Hull~4/51h 40m
    8. 21.8String Matching (KMP, Rabin-Karp, Z-Function)~5/52h 50m
    9. 21.9Manacher's Algorithm~5/540m

Questions Bank

Once you've been through the roadmap above, the topic grouping itself becomes a hint you won't have in a real interview. This is 505 Senior-FAANG-relevant problems in one fixed random order — title and LeetCode difficulty only, nothing else — for practicing cold pattern recognition.

Questions Bank505 Medium/Hard problems, randomly ordered, no topic or difficulty hints beyond what LeetCode itself shows.