Key takeaways
- A 10-week plan: language fundamentals (weeks 1–2), DSA by pattern (weeks 3–7), system design or projects (weeks 8–9), HR and mock interviews (week 10).
- Freshers spend more time on DSA and CS fundamentals; experienced developers shift time to system design and their own project stories.
- Track progress weekly and practise out loud — explaining your approach is graded as much as the code.
Interview preparation fails most often because people study randomly — a few videos here, fifty problems there — with no plan and no feedback. This roadmap gives you a structure that works for both freshers (campus and first jobs) and experienced developers switching companies. Adjust the weeks to your timeline; keep the order.
Week 0: Set up for success
- Choose one interview language and stick with it (Python is fastest to write; Java or C++ are fine if you already know them well)
- Make a tracker: topic, problems solved, mistakes and revision dates
- Block 2 focused hours a day (3–4 at weekends)
- Update your resume and GitHub, so you can apply the moment you're ready
Weeks 1–2: Language and CS fundamentals
Goal: answer core language questions confidently and write bug-free code fast.
- Language core: data types, OOP, error handling, collections, and the time complexity of built-in operations
- CS basics: OS (processes vs threads, deadlock, memory), DBMS (joins, normalization, indexes, transactions), networking (HTTP, TCP vs UDP, DNS)
- SQL: practise the 25 most-asked SQL queries
Resources on InterviewPitch: Python, Java, C, C++, SQL.
Weeks 3–7: Data structures and algorithms by pattern
Study patterns, not random problems. For each pattern, learn the idea, solve 8–15 problems from easy to medium, and revise your mistakes the following week.
| Week | Patterns |
|---|---|
| 3 | Arrays and hashing, two pointers, prefix sums |
| 4 | Sliding window, stacks and monotonic stacks, binary search (including "binary search on the answer") |
| 5 | Linked lists, trees (DFS/BFS traversals, BST), recursion and backtracking |
| 6 | Heaps (top-k, merging k lists), graphs (BFS, DFS, topological sort, Dijkstra), union-find |
| 7 | Dynamic programming (1D, 2D, knapsack, LIS, edit distance), intervals, greedy |
A good template for answering a coding question in an interview:
- Restate the problem and ask about edge cases and constraints
- Describe the brute force and its complexity
- Spot the pattern and optimise; state the new time and space complexity
- Code it cleanly, narrating as you go
- Test with a normal case, an edge case and a large case
# Pattern example — sliding window: longest subarray with sum <= k (non-negative numbers)
def longest_at_most_k(nums, k):
left = total = best = 0
for right, x in enumerate(nums):
total += x
while total > k:
total -= nums[left]; left += 1
best = max(best, right - left + 1)
return bestFull question bank: DSA interview questions.
Weeks 8–9: System design (experienced) or projects (freshers)
Experienced (2+ years): learn the building blocks — load balancers, caching, databases (SQL vs NoSQL, replication, sharding), queues, CDNs, consistency, rate limiting — then practise classic designs: URL shortener, rate limiter, chat system, news feed, notification service, file storage. Use a repeatable structure: requirements → estimates → API → data model → high-level design → deep dives → trade-offs. See the system design interview questions.
Freshers: polish two projects you can defend in depth. Know the architecture, the database schema, one hard bug you fixed, and what you'd improve. Interviewers ask "why did you choose X?" more than anything else.
Everyone in 2026: learn the basics of Generative AI — how LLM APIs work, RAG and prompt engineering. AI features now come up even in general backend interviews: Generative AI interview questions.
Week 10: HR rounds and mock interviews
- Prepare answers to the top HR interview questions, especially "tell me about yourself", "why should we hire you" and salary expectations
- Write 6 STAR stories: a success, a failure, a conflict, leadership, a tight deadline, learning something fast
- Do at least 3 mock interviews with friends or peers, on a timer, with the camera on
- Take the topic quizzes on InterviewPitch Quizzes to find weak areas quickly
Adjusting the plan
| Situation | Change |
|---|---|
| Campus placement in 4 weeks | Week 1 fundamentals + aptitude; weeks 2–3 core DSA (arrays, strings, linked lists, trees); week 4 projects, HR and mocks |
| Service company (TCS, Infosys, Wipro) | More aptitude, a core language and basic SQL; fewer hard DSA problems |
| Product company, experienced | Compress fundamentals to 1 week; give system design 3 weeks |
| Switching to DevOps/cloud | Add Docker, Kubernetes and Linux/Bash |
| Switching to frontend | Add JavaScript, React and browser performance |
The habits that matter most
- Revise mistakes, not just new problems — keep a mistakes log and repeat those problems after 3 and 7 days
- Talk while you code — silent solving is the most common reason good coders fail interviews
- Time-box: 25 minutes on a medium problem before you look at a hint
- Apply early: real interviews are the best practice; start applying from week 6