Skip to content

DSA ROADMAP · PLACEMENTS & CODING INTERVIEWS

DSA roadmap: pattern by pattern, in the right order

Data structures and algorithms decide most online assessments and coding rounds. This plan takes you from basics to dynamic programming in about 16 weeks, with problem counts per pattern so you know when to move on. Pick one language and stay with it.

YOUR ROADMAP

What to study, step by step.

8 steps. Each topic says what to learn and has a button to practise it.

  • Must doInterviews ask this. Do not skip.
  • ImportantDo it if you can.
  • OptionalOnly if you have extra time.
Not started yetYou finished 0 of 19 topics (0 of 14 must-do)

Saved on this device. No login needed.

Jump to a step:

  1. Step 1 · Weeks 1–2

    Language & complexity

    Write correct code quickly and reason about its cost.
    Must do

    One language, fluently

    Every round assumes you can write syntax and use the standard library without thinking.

    What to learn
    • Input and output, loops and functions
    • Standard collections and their costs
    • Sorting with custom comparators
    • Integer overflow and common pitfalls

    C++, Java or Python. Learn its built-in lists, maps, sets, heaps and sorting.

    Must do

    Time & space complexity

    You must estimate whether an approach fits the constraints before you code it.

    What to learn
    • Big-O for loops, nested loops and recursion
    • Reading constraints: what n = 10^5 allows
    • Space complexity and the call stack
    • Amortised cost basics

    You are done with this step when:You solve about 10 easy problems and can state the complexity of each solution.

  2. Step 2 · Weeks 3–4

    Arrays, strings & hashing

    Master the patterns behind the most common interview questions.

    You are done with this step when:You recognise when a problem is a hashing, prefix-sum or sliding-window problem within a minute.

  3. Step 3 · Weeks 5–6

    Recursion, sorting & binary search

    Think recursively and search efficiently.

    You are done with this step when:You can write subsets, permutations and binary search on the answer without looking anything up.

  4. Step 4 · Weeks 7–8

    Linked lists, stacks & queues

    Handle pointer manipulation and order-based problems.

    You are done with this step when:You can implement an LRU cache and solve next-greater-element variants.

  5. Step 5 · Weeks 9–10

    Trees, BSTs & heaps

    Get comfortable with the structure product companies ask about most.

    You are done with this step when:You solve medium tree problems in under 25 minutes.

  6. Step 6 · Weeks 11–12

    Graphs

    Model problems as graphs and pick the right traversal.

    You are done with this step when:You can solve grid BFS, course-schedule and Dijkstra problems confidently.

  7. Step 7 · Weeks 13–15

    Greedy & dynamic programming

    Learn the state patterns so new DP problems feel familiar.
    Must do

    Dynamic programming

    Separates strong candidates in OAs and interviews.

    What to learn
    • Memoisation to tabulation
    • 1D DP: climbing stairs, house robber
    • 2D and grid DP
    • Knapsack and subset sums
    • LIS, LCS and DP on strings

    About 25 problems; learn patterns, not individual solutions.

    You are done with this step when:You can define the state and transition for common DP problems before writing code.

  8. Step 8 · Week 16

    Revision & mock interviews

    Turn practice into performance under time pressure.
    Must do

    Revision system

    Re-solving beats solving new problems once you have covered the patterns.

    What to learn
    • Re-solve problems you got wrong
    • One-line pattern notes per problem
    • Timed sets of two or three problems
    • Tracking weak topics
    Must do

    Mock coding interviews

    Thinking aloud while coding is a separate skill; practise it.

    What to learn
    • Clarify, plan, code, test
    • Explaining complexity and trade-offs
    • Handling hints gracefully
    • Two or three full mocks

    You are done with this step when:Two timed mock interviews done, and a revision list of your 50 most important problems.

  9. You are interview-ready

    Now tailor your resume to each job and start applying.

SAVE YOUR TIME

Don't waste time on these.

Common traps that cost students weeks.

  • Solving 1,000 problems without revision

    Patterns stick through re-solving and notes. 200 problems revised well beat 1,000 solved once.

  • Switching languages midway

    You lose weeks to syntax. C++, Java and Python are all accepted.

  • Advanced CP maths (FFT, number-theory heavy problems)

    Almost never asked in placements or interviews outside competitive programming.

  • Memorising solutions

    Interviewers change the problem slightly. Learn why a pattern works instead.

  • Hard problems before mediums are comfortable

    Most rounds are medium. Hards before then mostly build frustration.

NEXT STEP

Know which job you want?

Open the roadmap for that job. It shows the interview rounds and exactly what to focus on.

All job roadmaps

A LITTLE MORE CLARITY

Common questions

How many DSA problems are enough for placements?

About 200 problems across the core patterns, revised properly, is enough for most placement drives. Quality matters more than the count: re-solve the ones you got wrong.

Which language is best for DSA?

C++, Java and Python are all accepted by almost every company. C++ and Java are common in competitive programming; Python is concise. Choose the one you are most fluent in.

How long does it take to learn DSA?

About 16 weeks at roughly 10 hours a week, following the patterns in order. If you already know the basics, start at arrays and hashing and move faster.

Is competitive programming required for placements?

No. It helps with speed in online assessments, but pattern-based practice and revision cover what most interviews ask.

BUILD YOUR NEXT OPPORTUNITY

Start step 1 today.

Practise coding and DSA for free, then build your resume and find jobs in the same place.

Start Coding Free