DSA · Placement strategy
Three tracks, three different papers
A service-company test and a top product interview are not the same exam, and preparing “for placements” prepares you for neither. You will map the three formats side by side, turn ten weeks into a 150-hour calendar, and set up the revision loop that keeps a solved problem solved.
01 The idea
One word, three different papers
Placement season is not one exam. A student who prepares only arrays and trees walks into a service-company test and loses on percentages and reading comprehension. A student who grinds aptitude for three months walks into a product-company round with two medium problems in seventy-five minutes and runs out of time on the first one. Both prepared hard. Both prepared for the wrong paper.
The format is set by hiring volume, not by how good the company is. A company taking thirty thousand freshers cannot put an engineer in front of every applicant, so it filters with a cheap test that auto-grades: aptitude, verbal, one or two small coding questions, sometimes SQL. A company taking two hundred can afford ninety minutes with an engineer, so it tests the expensive thing — whether you pick a workable approach under a clock and can defend it out loud. Same industry, same year, completely different paper.
02 Worked example
Ten weeks, 150 hours, one calendar
Priya has 10 weeks until her first campus drive. She can give two hours on each weekday and five hours across the weekend, and she does not yet know which companies will visit. Here is her plan, built from the hours she actually has rather than from a topic list. Every line below adds up; check them as you read.
The log is four columns wide and takes forty seconds to fill. Here are three real rows from Priya’s week 3:
| Problem | Pattern | What went wrong | Minutes |
|---|---|---|---|
| Two Sum | Hash map, one pass | Nothing. Solved it cold. | 9 |
| Longest substring without repeating characters | Sliding window + last-seen map | Moved the left edge one step at a time instead of jumping it past the duplicate. | 38 · hinted |
| Trapping rain water | Two pointers from both ends | Only found the prefix-max version. Never saw why two pointers is correct. | 52 · editorial |
Row one is finished and never returns. Rows two and three go on the day-14 list before the editor closes. The what went wrong column is the one people skip and the one that does the work: “sliding window” tells you nothing two weeks later, but “I moved the left edge one step at a time” drops you straight back inside the mistake.
Thirty minutes a problem is an average, not a target — an easy array problem takes ten and your first graph problem takes ninety. Three things in this plan are worth copying whatever your number of weeks is. It is built from hours, so it cannot silently overrun. It front-loads aptitude, because service drives usually land first on campus and a missed cut-off cannot be appealed. And it stops adding new topics two weeks out. The next section is what decides which of those hours matters for which paper.
03 The three formats
What each track actually tests
Read the last column first. What gets you rejected differs more between these three tracks than what gets tested, and it is the column students never look at. Not one of the three rejection reasons below is a plain “you did not know the algorithm”.
These are the patterns each track usually runs, not a promise about any one company in any one year. Formats change between years, and the same company can run a shorter test at one college and a full product-style round at another. Treat the table as the shape to expect, then confirm it against last year’s drive on your own campus.
| Track | Format and duration | What is tested | What gets you rejected |
|---|---|---|---|
| Service typically TCS, Infosys, Wipro, Cognizant, Accenture |
Usually one online test of 2–3 hours: aptitude, verbal, logical reasoning, one or two small coding questions, often SQL. Then a 20–30 minute technical round and an HR round. | Breadth and speed. Percentages, ratios, time and work, data interpretation, reading comprehension. Loops, strings and a formula in one language. SQL joins and GROUP BY. The OOP pillars, and whatever core CS you claimed on your resume. | Missing the aptitude cut-off, or being unable to explain a line of your own project. Almost never for not knowing graphs. |
| Mass-hire product 50–300 freshers a year |
An online round of roughly two medium problems in 60–75 minutes, then one or two 45-minute interviews in a shared editor. | Pattern recognition against a clock. Arrays, strings, hashing, two pointers, sliding window, stacks, binary search, sorting, basic trees and graphs. You are expected to reach a working solution and state its complexity without being asked. | Finishing one problem out of two, or finishing both after the timer. Submitting a brute force without ever naming the better approach ends it just as fast. |
| Top product 5–20 hires per team |
Usually one medium and one hard in a 90-minute online round, then three or four interviews: two DSA, one low-level design, one behavioural with the hiring manager. | Depth and communication. Graphs, dynamic programming, heaps, tries, and an LLD discussion — a parking lot, a rate limiter, a bill splitter — where classes, interfaces and edge cases matter more than syntax. | Silence. Reaching the right answer without narrating the reasoning, or writing code before the approach was agreed. Also: no test cases, and no answer to “what breaks at scale”. |
Why the service track leads with aptitude. Fifty thousand applications, a few thousand seats, and a hiring team that cannot read them. An aptitude section is the cheapest filter that scales: it grades itself in seconds, it cannot be defeated by memorising a repository of solutions, and it correlates well enough with finishing work on time. The coding question is deliberately small because the company plans to train you on its own stack anyway.
Why the mass-hire round is two mediums and a clock. The company already believes you can code — your degree and your test score said so. What it cannot afford to discover in month three is that you freeze. Two problems in seventy minutes forces you to recognise the pattern in the first three minutes, because there is no time left to discover it by writing. That is why the practice reps that matter are timed ones, from week 3.
Why the top track adds design and a behavioural round. At five to twenty hires, one bad hire is a measurable cost, so they test the things that actually break teams: unclear thinking, code nobody else can extend, and an unwillingness to say “I do not know”. The DSA rounds are the entry ticket, not the decision. The decision is usually made in the design round and the manager round.
04 Cheat sheet
The clocks you are actually racing
Every one of these is a per-item budget, not a total. Rose marks the one with a cut-off you cannot argue with; amber marks the two rounds students most often run out of time in.
| Round | Budget per item | How to spend it |
|---|---|---|
| Service · aptitude section | 60–90 s / question | Sweep once and take everything you can finish inside a minute, then come back. One long question can cost you four easy ones. |
| Service · coding question | ~15 min / problem | One or two easy problems: loops, strings, a formula. Full marks are the expectation here, not a bonus. |
| Mass-hire product · online round | ~35 min / problem | Two mediums in 60–75 minutes. Aim for the pattern named in 5, code done by 20, tests run by 30. |
| Top product · online round | ~45 min / problem | One medium and one hard in 90 minutes. Bank the medium in 25 and give the rest to the hard one. |
| Any live interview round | ~45 min | 5 minutes clarifying, 10 agreeing the approach out loud, 20 coding, 10 dry-running and stating complexity. |
| Cold re-solve | ~15 min | A problem you already solved once, from a blank editor. It should take a fraction of the original attempt; if it takes as long again, the pattern was never learned. |
05 Where & why
Which track to aim at first
You cannot peak for all three tracks in the same week, and you do not have to. On most campuses the service drives land first and the product drives follow, so the order is half-decided for you. The real question is how many of your own hours you let the earliest drives take — and the honest answer depends on how much base you already have, not on which company you would prefer.
Aim at the product tracks first when…
Rebalance toward the service track when…
| Situation | Better choice | Why |
|---|---|---|
| Six weeks left and no DSA base at all | Service track, fully | Six weeks buys aptitude fluency and one solid language, which is what a service test asks for. It does not buy graphs and DP, and a half-learned graph is worth nothing in a 70-minute round. |
| Your test scores are the thing holding you back, not your code | Aptitude and core CS | Both are finite and score-based. Twenty-four hours of percentages and joins moves a test score further than twenty-four hours of new DSA topics at that stage. |
| You solve fine alone but freeze in interviews | Mock interviews, not more problems | The gap is verbalising, not knowing. Ten recorded 45-minute mocks fix more than a hundred additional solved problems. |
| Every company visiting your campus is a service company | Service track now, product track after | Optimise for the offers that actually exist. Keep DSA ticking at two problems a day so an off-campus product application stays open next year. |
06 Interview questions
What interviewers actually ask
Eleven questions in the order things escalate: what the tracks are, how you prepared, how you spend the clock, and then the ones that decide whether the interviewer believes you.
What is the actual difference between a service-company interview and a product-company interview?
Walk me through how you prepared.
Seventy minutes, two medium problems. What do you do in the first five?
If the job is coding, why is there an aptitude section at all?
What actually gets asked in a service-company technical round?
How many problems should I solve?
What is spaced repetition, and how does it apply to DSA?
You solved this exact problem three weeks ago and cannot do it now. What went wrong?
What is a low-level design round, and how is it different from a DSA round?
What gets candidates rejected, on your track?
Honestly, do you use any of this on the job?
07 Practice problems
Six exercises on your own preparation
None of these is a coding problem. Each one produces a number or a document you keep, and every one is doable with only what is above: the hour count, the four-way split, the track labels, and the log.