Guides

DSA preparation plan for campus placements in 30 days

What thirty days can and cannot do

Thirty days is enough to become dependable at the core patterns that most campus coding rounds draw on: arrays, strings, hashing, two pointers, sliding window, stacks, binary search, linked lists, trees and the basics of recursion. It is not enough to cover every topic in a thick DSA book, and trying to is the most common way the month goes wrong. You finish with a long list of half-understood topics and no problem you could solve cold.

Placement tests also vary a great deal from one campus drive to the next. Some are an online assessment with two or three problems on a clock, some add an aptitude section, some go straight to a live interview. Find out the format of the drives you are actually sitting, ask seniors who went through them, and weight your thirty days to match. This guide gives a sensible default, not a promise about any particular company.

Week 1: arrays, strings and hashing

Start with the topics that unlock the most problems. Spend the first week on arrays and strings, frequency counting with a hash map, and prefix sums. Do two or three problems a day, and put a 25 minute clock on each one from the first day. A clock is part of the skill: the real test will not wait for you to feel ready.

  • Restate the problem in your own words before you type anything.
  • Write two or three edge cases first: empty input, one element, duplicates, the largest allowed size.
  • Say the brute force out loud, note its cost, then improve it. A correct slow answer beats an unfinished clever one.

Good first problems are First rescan, a variant of finding the first repeating element, and Tightest rescan. Both reward the same habit: remember what you have already seen.

Week 2: two pointers, sliding window and stacks

These three patterns turn many quadratic loops into linear ones, which is exactly what online assessments with large inputs check for. Learn to recognise the signal. A sorted array and a pair condition suggests two pointers. A contiguous range with a limit suggests a sliding window. Matching or nesting suggests a stack.

Try Pairs under budget, Peak k-hour draw and Tag balance in that order. If you get stuck, open one hint, close it, and keep trying. Note that you needed it.

Week 3: binary search, linked lists and trees

Binary search is more than finding a number in a sorted list. The more useful form is searching for the smallest or largest value that satisfies a condition, and it appears in many medium problems once you see it. Smallest sufficient tier is a gentle start.

Linked lists and trees are where recursion and pointer handling get tested. For trees, name what each recursive call returns and say the base case first. For linked lists, draw the pointers on paper before you write the code, and test the one-node and empty cases. Many students lose marks on these cases, not on the idea.

Week 4: mixed sets, revision and mock rounds

Stop practising by topic. A test will not tell you which pattern to use. Do mixed sets of two or three problems in 60 to 90 minutes, in a quiet room, with no notes open. Keep a plain log of the problem, the pattern, the minutes taken, whether it passed, and where you got stuck. After a week the log shows your weak patterns more honestly than your memory does.

Use the last three days for revision, not new topics. Redo two problems you failed earlier from a blank editor. If you cannot, you recognised them rather than learned them. On the final day, do one easy problem, check your setup and the language you will use, and sleep.

How to review so it sticks

After each session, read a clean solution only once your clock has run out, close it, and write it again from memory. The second attempt is where the learning happens. Keep a short list of mistakes that repeat: off-by-one errors, forgetting an empty input, using the wrong data structure. That list is a better revision guide than any chapter.

Be honest about hints. A solve with no hints and a solve with the third hint are different results, and counting them the same makes you overconfident. Mark them separately in your log.

Where Unaided fits

You can follow this guide with a notebook and a timer. If you want the order, the clock and the hidden tests handled for you, Unaided builds a plan sized to a 7, 15 or 30 day run and to the hours you have each day, and records how you did so the next day leans on your weak spots. You can try one problem free before deciding anything, and prices are on the pricing page. If you are also thinking about the jobs themselves, our guide to preparing for an SDE-1 interview as a fresher covers what comes after the test.

Practise this

Begin your plan · Pricing · Try one problem free