DSA Roadmap for Placements: A 12-Week Plan for CSE Students

Written by

in

If your placement season is about three months away, you do not need a list of 500 problems. You need a DSA roadmap for placements that tells you what to study each week, in an order where every topic prepares you for the next one. This guide is that plan: 12 weeks, one topic block at a time, with a weekly target you can actually check.

It is written for CSE students in Indian colleges who already know one programming language (C++, Java or Python) and want to be ready for the coding rounds of both product companies and service companies.

Why DSA decides most coding rounds

Almost every campus coding round is a timed test of two or three problems, followed by a technical interview where you explain your approach. Interviewers are not checking whether you memorised a solution. They check whether you can spot the pattern, pick the right data structure, and say how fast your solution is.

That last part is measured with time complexity, usually written in Big O notation. For example, a nested loop over an array of n elements takes O(n²) time, while sorting it first and using two pointers can bring the same problem down to O(n log n). If you can explain that difference out loud, you are already ahead of many candidates.

Before you start: three rules

  • One language only. Use the language you will write in the test. Switching between C++ and Java mid-way costs weeks.
  • Patterns over counts. Solving 150 problems you understand beats 400 you copied. After each problem, write one line about the pattern it used.
  • Fixed daily slot. Ninety minutes every day is better than six hours on Sunday. Consistency is what makes patterns stick.

The 12-week DSA roadmap for placements

Weeks 1–2: Arrays, strings and complexity

Start with arrays and strings, because most easy and medium questions are built on them. Learn prefix sums, the two-pointer technique, sliding window and basic hashing with maps and sets. Practise calculating the time and space complexity of every solution you write.

Weekly target: 15–20 easy problems, then 5 medium sliding-window or two-pointer problems.

Week 3: Recursion and backtracking basics

Recursion is the base for trees, graphs and dynamic programming, so do not skip it. Practise writing the base case first, then the recursive step. Solve subsets, permutations and simple backtracking problems such as generating valid parentheses.

Weekly target: 10–12 problems, drawing the recursion tree on paper for at least five of them.

Week 4: Searching and sorting

Learn binary search properly, including “binary search on the answer”, where you search over a range of possible answers instead of an array. Understand merge sort and quick sort well enough to explain them, because interviewers still ask.

Weekly target: 10 binary search problems of increasing difficulty.

Week 5: Linked lists, stacks and queues

Linked list questions test pointer handling: reversing a list, finding the middle, detecting a cycle. Stacks appear in “next greater element” and bracket-matching problems, and queues in level-by-level processing.

Weekly target: 12–15 problems, including at least three monotonic stack problems.

Weeks 6–7: Trees and binary search trees

Trees are where recursion pays off. Learn the four traversals (inorder, preorder, postorder, level order), height and diameter, lowest common ancestor, and BST insert, search and validation. Most tree problems are one traversal with a small change.

Weekly target: 20 problems across the two weeks.

Week 8: Heaps and greedy

Use a heap (priority queue) whenever a problem asks for the “k largest”, “k closest” or a running median. Greedy problems such as activity selection and interval merging often pair with sorting.

Weekly target: 10–12 problems.

Weeks 9–10: Graphs

Start with how to store a graph (adjacency list), then BFS and DFS. Move on to connected components, cycle detection, topological sort, and shortest paths with Dijkstra’s algorithm. Many grid problems are graph problems in disguise.

Weekly target: 18–20 problems across the two weeks.

Week 11: Dynamic programming

Begin with 1D problems such as climbing stairs and house robber, then 2D problems such as longest common subsequence and 0/1 knapsack. Always write the recursive solution first, add memoisation, and only then convert it to a table.

Weekly target: 12–15 problems.

Week 12: Mock tests and revision

Stop learning new topics. Take two timed mock tests every few days, and revise your one-line pattern notes from the previous weeks. Re-solve any problem you got wrong without looking at the solution.

Weekly target: 4 full mock tests and one revision pass of all notes.

Product companies vs service companies

Service companies usually ask one or two easier coding questions along with aptitude, so weeks 1–5 of this plan cover most of what they test. Product companies go deeper into trees, graphs and dynamic programming, which is why weeks 6–11 matter if you are aiming for them. Either way, the order stays the same.

Make your preparation visible

Recruiters increasingly look you up online before an interview. A GitHub profile with your solutions and a simple portfolio site help, and it is worth learning how search works so your work can actually be found. Specialist firms such as SEOnaLabs, a search marketing agency, publish useful material on how pages get found in Google and in AI search, and the same basics apply to a student portfolio.

Common mistakes to avoid

  • Watching tutorial videos without solving problems yourself the same day.
  • Skipping recursion, then struggling with trees and dynamic programming.
  • Never practising under a timer, so the real test feels rushed.
  • Not explaining your approach out loud; interviews reward clear reasoning.

How to track your progress

Keep a simple sheet with four columns: problem name, topic, pattern used, and whether you solved it without help. At the end of each week, count how many problems you solved on your own. If that number is below half of the weekly target, repeat the week instead of moving on. It is slower on paper but faster in practice, because weak foundations show up again in later topics.

Once a week, pick three problems you solved earlier and solve them again from scratch with a 25-minute timer. This is the closest you can get to the pressure of a real online assessment, and it shows quickly which patterns you have actually learned.

Frequently asked questions

Is 12 weeks enough to prepare DSA for placements?

For most service-company coding rounds, yes, if you already know one programming language and practise daily. For product companies, 12 weeks gives you a solid base, but you will benefit from continuing graph and dynamic programming practice for another month.

Which language is best for DSA in placements?

C++, Java and Python are all accepted in almost every coding test. C++ is popular for its speed and its Standard Template Library, Java is common in Indian colleges, and Python is the quickest to write. The best choice is the one you already know well.

How many problems should I solve before placements?

Around 150 to 200 well-understood problems, spread across all the topics in this roadmap, is enough for most campus rounds. The number matters less than being able to recognise the pattern behind a new problem.

Can I prepare DSA during an internship?

Yes. Keep the 90-minute daily slot, move it to early morning or late evening, and stretch the plan to 16 weeks if needed. Steady progress matters more than finishing quickly.

Start this week

Pick your language, block a 90-minute daily slot, and start with week 1 today. If you want the bigger picture of placement preparation, including aptitude, projects and interviews, read the PlacementPath home page, and see who writes these guides.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *