Coding Interview Preparation Guide: DSA Study Plan

Coding interviews reward pattern recognition and clear communication more than memorised answers. This guide lists the lessons in the order a study plan would use them: plan first, then the core patterns, then the harder topics, then practice.

Pair it with the 12-week plan in the career series, which maps each week to these lessons.

Who it is for: Anyone preparing for data structures and algorithms rounds, from first loops to interview day.

43 lessons · Published by Jainik · Last updated

1. Plan your preparation

  1. 1. Career Playbook · 14 min
    A Coding-Interview Study Plan Mapped to This Site

    The handbook's 3-month plan (about 11 hours a week), three ways to order your study, and a 12-week table that points to the matching DSA lessons.

  2. 2. Career Playbook · 14 min
    Practising Well: Mock Interviews, Feedback Loops and Nerves

    The four things interviewers score, techniques for before, during and after coding and when stuck, a mock-interview routine, a scoring sheet and a mistake log.

  3. 3. DSA · 20 min
    How to Read a Problem

    Input, output, constraints, examples and edge cases — and solving it by hand before writing any code.

  4. 4. DSA · 24 min
    Big-O: Counting the Steps

    How many times does the loop run? Reading time and space complexity from code, and from the constraints of a problem.

2. Arrays, hashing and searching

  1. 5. DSA · 24 min
    Basic Hashing

    Counting with arrays and maps, how a hash table works inside, and why lookup becomes instant.

  2. 6. DSA · 24 min
    Prefix Sum

    Pre-compute running totals so that any range sum is instant.

  3. 7. DSA · 26 min
    Two Pointers

    Two indices moving towards each other or in the same direction — pair sums, reversing, removing duplicates, 3Sum.

  4. 8. DSA · 20 min
    Sliding Window: Fixed Size

    Reuse the last window's work instead of recomputing it.

  5. 9. DSA · 26 min
    Sliding Window: Variable Size

    Grow and shrink a window to find the longest or shortest answer.

  6. 10. DSA · 24 min
    Kadane's Algorithm

    The maximum subarray sum in a single pass, and the stock-trading problems built on the same idea.

  7. 11. DSA · 22 min
    Two Sum and “Seen Before?”

    Trading memory for speed with a map of what you have already met.

  8. 12. DSA · 24 min
    Frequency Maps and Grouping

    Anagrams, top frequencies, the majority element and grouping by a key.

  9. 13. DSA · 26 min
    Binary Search on a Sorted Array

    Halve the search space every step; first and last positions; rotated arrays.

  10. 14. DSA · 24 min
    Binary Search on the Answer

    When the answer itself can be searched: square roots, eating speeds, shipping capacity.

3. Linked lists, stacks and queues

  1. 15. DSA
    Building a Linked List

    Nodes and pointers (links to the next node), built from scratch.

  2. 16. DSA
    Reverse and Fast/Slow Pointers

    Reverse a list, find the middle, and check if the list has a loop (a cycle).

  3. 17. DSA
    Merging and Cycle Problems

    Join sorted lists, find where a loop starts, and remove the nth node from the end.

  4. 18. DSA
    Stacks

    Last in, first out. Examples: valid brackets, a stack that knows its minimum, and working out expressions.

  5. 19. DSA
    Queues and Deques

    First in, first out, and a queue you can use from both ends.

  6. 20. DSA
    Monotonic Stack

    Find the next bigger item. It also solves temperatures, stock spans, histograms and rain water.

4. Recursion and backtracking

  1. 21. DSA · 24 min
    Recursion Basics

    A function that calls itself, a base case that stops it, and the call stack underneath.

  2. 22. DSA
    Recursion Trees

    Draw every call as a tree, so recursion is easy to follow.

  3. 23. DSA
    Subsets and Permutations

    Pick or skip each item, to list every possible choice.

  4. 24. DSA
    Backtracking

    Choose, try, then undo. Examples: combination sum, N-Queens, word search.

5. Trees, heaps and graphs

  1. 25. DSA
    Binary Trees and Traversals

    Root, leaves and height. Preorder, inorder and postorder, drawn and coded.

  2. 26. DSA
    Level Order (BFS) on Trees

    Visit a tree one layer at a time with a queue.

  3. 27. DSA
    DFS on Trees

    Height, balance, diameter (the longest path) and path sums.

  4. 28. DSA
    Heaps and Top-K

    Build a priority queue by hand in JavaScript, then use it to find the top K items.

  5. 29. DSA
    What a Graph Is

    Vertices, edges and the adjacency list (each vertex's list of neighbours).

  6. 30. DSA
    Graph Traversal: BFS and DFS

    Count islands, flood fill, rotting oranges and copy a graph.

  7. 31. DSA
    Topological Sort

    Put tasks in order when some depend on others, and find loops (cycles).

  8. 32. DSA
    Shortest Paths

    BFS when all steps cost the same, Dijkstra for other costs, and Bellman–Ford for limits.

  9. 33. DSA
    Union-Find

    Group things fast: connected groups, finding cycles and minimum spanning trees.

6. Dynamic programming and extras

  1. 34. DSA
    Dynamic Programming From Recursion

    Repeated subproblems, memoisation, tabulation and saving memory.

  2. 35. DSA
    1-D Dynamic Programming

    House robber, coin change, decode ways, word break and the longest increasing subsequence.

  3. 36. DSA
    2-D Dynamic Programming

    Paths on a grid and the 0/1 knapsack problems.

  4. 37. DSA
    DP on Strings

    Longest common subsequence, edit distance and the longest palindrome inside a string.

  5. 38. DSA
    Tries and Bit Manipulation

    Prefix trees, and the bit tricks that interviews ask about.

7. Interview day and review

  1. 39. DSA
    The Interview Playbook

    Ask, plan, code, test: the 45 minutes, step by step.

  2. 40. DSA
    Your Revision Plan

    A cheat sheet to spot patterns, a week-by-week plan and a checklist to test your memory.

  3. 41. Full-Stack Questions · 42 min
    Live Coding and Take-Home Rounds

    A 45-minute routine, a take-home checklist and six full-stack tasks with tested code.

  4. 42. Full-Stack Questions · 28 min
    Behavioural Questions, Salary and Offers

    Behavioural answers, conflict stories, salary talks, offers and the first 90 days.

  5. 43. Career Playbook · 15 min
    A Resume Guide for Software Engineers

    A one-page, scannable resume built from the Tech Interview Handbook guide: structure, strong bullets, ATS myths versus facts, and five before-and-after rewrites.

More reading orders are on the guides page, and every series is listed on the home page.