In this guide
- Where the data comes from
- Important DSA topics for placements, ranked
- Online assessments vs interviews: different DSA
- How much DSA do you need?
- The 10-week DSA roadmap for placements
- How to prepare DSA for campus placements: practical tips
- How to approach a DSA problem in the interview
- Practise DSA for placements on Dronacharya Campus
- Frequently asked questions
The DSA for placements that matters most is a short list: arrays and strings, hashing, trees, graphs and dynamic programming, followed by stacks and queues, linked lists, heaps, sorting and binary search. In the candidate reports collected by Dronacharya Campus, trees, arrays and graphs each came up in the test or interview rounds of 46 to 48 companies, and DP at 40. The order you learn them in should follow that data, not the order of a textbook.
This guide shows how often each topic appears, how online assessments differ from interviews, and a 10-week roadmap that builds from arrays to DP with practice problems for each stage.
Where the data comes from
Dronacharya Campus has collected 435 candidate reports covering 222 companies. For this post, we looked at every online test, coding test, aptitude test and technical interview round in those reports, 931 rounds in total, and counted which DSA topics were named. A topic is counted once per round, and the company column counts distinct companies.
Reports vary in detail. Some list every problem; others just say "DSA". So these counts are lower bounds, and the ranking matters more than the exact numbers. Companies also change their questions every season, so use this as a priority list, not a syllabus.
Important DSA topics for placements, ranked
| Topic | Companies (any round) | Online test rounds | Interview rounds |
|---|---|---|---|
| Trees (traversals, BST, LCA) | 48 | 36 | 67 |
| Arrays and prefix sums | 48 | 39 | 45 |
| Graphs (BFS, DFS, shortest paths, union find) | 46 | 53 | 57 |
| Dynamic programming | 40 | 47 | 30 |
| Strings | 37 | 40 | 28 |
| Linked lists | 34 | 10 | 40 |
| Stacks and queues | 32 | 12 | 44 |
| Hashing | 30 | 16 | 35 |
| Binary search | 30 | 10 | 24 |
| Sorting | 29 | 14 | 33 |
| Heaps and priority queues | 26 | 10 | 33 |
| Matrix and grid problems | 26 | 17 | 22 |
| Greedy | 23 | 26 | 20 |
| Bit manipulation | 20 | 18 | 12 |
| Sliding window and two pointers | 20 | 14 | 16 |
| Recursion and backtracking | 18 | 16 | 12 |
| Tries | 16 | 3 | 19 |
| Maths and number theory | 13 | 10 | 3 |
The aggregate topic tags on Dronacharya Campus tell the same story. Summed across all company profiles, dynamic programming (53 weighted mentions), arrays (50), graphs (42), strings (38), greedy (35) and trees (30) lead the specific DSA topics.
Online assessments vs interviews: different DSA
The most useful thing in the table is the split between the two right-hand columns.
Online assessments lean towards graphs, DP, strings, arrays and greedy. Graphs appeared in 53 test rounds and DP in 47, against 30 interview rounds for DP. These topics make good auto-graded problems: large hidden inputs punish slow solutions, and there is one correct answer to check. Grid BFS, counting paths and "minimum cost to reach the end" are typical OA shapes.
Interviews lean towards trees, stacks and queues, linked lists, hashing and heaps. Linked lists appeared in 40 interview rounds but only 10 test rounds; stacks and queues in 44 against 12; tries in 19 against 3. These are problems that are short enough to code and discuss in 45 minutes, and they let the interviewer probe your reasoning with follow-ups like "now do it in constant space".
What this means for planning:
- If your first hurdle is an OA, get graphs and one-dimensional DP solid early. These are where most candidates drop marks.
- Before interviews, make sure linked list manipulation, tree recursion, stack-based problems and heaps are second nature, because you will be coding them while someone watches.
- Arrays, strings and hashing sit underneath everything. They are week one, not an afterthought.
What candidates were actually asked
Paraphrased from report patterns, these are the kinds of problems that came up, all well-known classics:
- Rotate an array by k steps, then do it in constant extra space.
- Reverse a linked list; find its middle with slow and fast pointers; delete a node given only a pointer to it.
- Deep copy a linked list with extra random pointers.
- Implement an LRU cache.
- Best time to buy and sell a stock, with one transaction, many transactions, or at most K transactions using DP.
- Maintain the median of a data stream.
- Design a set with insert, delete and get-random in O(1).
- Shortest path on a grid with multi-source BFS, or a Dijkstra variant.
- Binary search on the answer for an optimisation problem.
Notice that very few of these need exotic data structures. They need the standard ones, used cleanly, with a clear explanation.
How much DSA do you need?
It depends on the role. Among software employers in the reports, 64% of hiring processes had coding somewhere, in a test, an interview or both. Product companies, trading firms and large technology firms test DSA in depth, in both the test and the interviews. Service and analyst employers in the reports tended to pair a shorter coding section with aptitude and technical MCQs.
Some company examples from Dronacharya Campus, which vary by season:
- Google interviews in recent seasons featured graphs (BFS, union find, Dijkstra variants), prefix sums, tries, monotonic stacks and heaps.
- Amazon SDE intern rounds featured heaps, binary search on the answer, greedy, trees and BFS on a grid.
- Microsoft's 2026-27 intern OA had two problems, and accounts of it listed arrays, greedy, DP, strings, tries, prefix sums, heaps and bit manipulation.
- D E Shaw coding rounds repeatedly featured DP, trees, graphs and greedy.
Read the full breakdowns in Google interview process for freshers and Amazon interview process for freshers.
The 10-week DSA roadmap for placements
This roadmap assumes you know one language well enough to write loops, functions and use its standard library (vectors and maps in C++, lists and dicts in Python, and so on). Aim for two to three hours on weekdays, more at weekends.
| Week | Topics | Target | Practise on Code Studio |
|---|---|---|---|
| 1 | Time and space complexity, arrays, prefix sums, two pointers | 20 easy problems | |
| 2 | Strings, hashing, sliding window | 20 problems, mostly easy | Pair Sum Count |
| 3 | Sorting, binary search, binary search on the answer, basic recursion | 15 problems | |
| 4 | Stacks, queues, monotonic stack and deque, linked lists | 20 problems | Balanced Brackets, Longest Calm Stretch |
| 5 | Trees: traversals, BST operations, recursion on trees, LCA | 20 problems | |
| 6 | Heaps, greedy, interval problems | 15 problems | Meeting Rooms |
| 7 | Graphs: BFS, DFS, grids, cycle detection, topological sort, union find | 20 problems | Grid Escape |
| 8 | Shortest paths (Dijkstra, 0-1 BFS), DP on one dimension | 15 problems | Coin Ways |
| 9 | DP on two dimensions: grids, knapsack, strings; tries and bit manipulation | 15 problems | |
| 10 | Mixed timed sets in OA format, mock interviews, revision of weak topics | 3 timed tests | All of the above |
How to work through each week
- Learn the pattern on day one. Read one good explanation of the core technique and implement it yourself from memory.
- Solve easy problems fast, then mediums slowly. For mediums, give yourself 25 to 30 minutes before reading a hint. Struggling productively is where the learning happens.
- Write the complexity before you code. Interviewers ask for it every time, and checking it against the constraints tells you whether your approach will pass the hidden tests.
- Revisit, do not just add. Every weekend, re-solve three problems from earlier weeks without looking at your old code.
- Explain out loud. From week 4 onwards, talk through at least one problem a day as if to an interviewer. Thinking aloud was one of the most repeated pieces of advice in the reports.
If you only have four weeks
- Week 1: arrays, strings, hashing, two pointers, sliding window.
- Week 2: sorting, binary search, stacks, linked lists.
- Week 3: trees, BFS and DFS on graphs and grids.
- Week 4: one-dimensional DP, heaps, and three timed OA-style tests.
Skip tries, segment trees and advanced DP. Depth in the common topics beats a thin layer over everything.
How to prepare DSA for campus placements: practical tips
Choose one language and stay with it. C++, Java and Python are all fine for most OAs. C++ gives you speed when limits are tight, Python gives you shorter code. Switching mid-preparation costs weeks.
Learn your standard library. Know how to sort with a custom comparator, use a priority queue, a hash map, a set, and a deque without looking anything up. Half of many OA problems is choosing the right container.
Practise reading input. OA platforms read from standard input. One candidate reported that the starter code in their test read only one word of a line and had to be replaced. Be able to write your own input parsing quickly.
Submit brute force first in OAs. Several tests in the reports gave partial credit per passed test case. A correct slow solution banks marks while you look for the optimal one.
Track patterns, not problem counts. After each problem, write one line: the pattern (for example "monotonic deque for window maximum") and the mistake you made, if any. Before an interview, read this log instead of re-solving problems.
Do not neglect fundamentals. DSA gets you through the OA, but interviews at most software companies also ask OOP, OS and DBMS. Leave room for them from week 6 onwards, an hour or two a week, so they are not a last-minute scramble.
How to approach a DSA problem in the interview
Knowing the topics is half the job. The other half is how you work through a problem while someone watches. Candidates' advice in the reports was remarkably consistent, and it fits into five steps:
- Clarify first. Restate the problem, ask about input size, edge cases and whether the input can be modified. Interviewers often leave details vague on purpose.
- Start with brute force. State the simplest correct approach and its complexity, even if it is slow. Several candidates said interviewers wanted to hear this before the optimal version.
- Optimise out loud. Name the bottleneck ("the inner loop repeats work") and the tool that removes it (a hash map, a heap, a prefix sum, memoisation).
- Code cleanly. Use clear variable names and small helper functions. On pen and paper, which some companies still use, leave space for corrections.
- Test by hand. Walk through a small example and one edge case before saying you are done.
If you get stuck, say what you are stuck on and ask for a hint. Candidates reported that asking for a hint was treated as normal, while long silences were not. This is where practising DSA for placements out loud, from week 4 of the roadmap, pays off.
Practise DSA for placements on Dronacharya Campus
The Code Studio on Dronacharya Campus has OA-style problems with hidden tests and large inputs. Your code runs in the browser, in Python or JavaScript, with C++ and Java planned. The current set includes Grid Escape (BFS on a grid), Coin Ways (dynamic programming) and Longest Calm Stretch (sliding window with a monotonic deque), along with Balanced Brackets, Pair Sum Count and Meeting Rooms. For DSA theory questions of the kind that appear in technical MCQ sections, there is DSA concept practice covering complexity, data structures, trees, graphs and DP.
For the test format itself, see the online assessment preparation guide.
Frequently asked questions
Which DSA topics are most important for placements?
Trees, arrays, graphs and dynamic programming, followed by strings, linked lists, stacks and queues, hashing, binary search, sorting and heaps. In the reports collected by Dronacharya Campus, trees, arrays and graphs each appeared in rounds at 46 to 48 companies, and DP at 40.
How long does it take to prepare DSA for campus placements?
About ten weeks of steady work is enough to cover the core topics if you already know one programming language. Four weeks can work for the most common topics if you focus on depth over breadth. Starting from no coding background, plan for four to six months.
How many DSA problems should I solve for placements?
There is no magic number. Around 150 to 200 well-chosen problems across the topics in this roadmap, re-solved and understood, is a reasonable target. Recognising the pattern quickly matters more than the total count.
Is dynamic programming important for placements?
Yes, especially for online assessments. DP appeared in 47 test rounds in the reports, more than in interviews, and at 40 companies overall. One-dimensional DP and DP on grids are the priority; advanced DP is rarely needed for most roles.
Which language is best for DSA in placements?
Whichever you already know best among C++, Java and Python. C++ is popular for speed and its standard library; Python is shorter to write. One candidate noted that C++ helped when time limits were tight, but consistency matters more than the choice.
Do service companies ask DSA in placements?
Often, but usually as a shorter coding section alongside aptitude and technical MCQs. Product and trading firms in the reports tested DSA in more depth, across both the test and the interviews. Check the specific company's recent reports before deciding how deep to go.