
Preparing for coding interviews feels overwhelming because there is so much to learn and no clear order. This plan breaks the work into eight weeks of about one to two hours a day. It is designed for freshers and final-year students, and you can stretch it if you have less time.
Before you begin
- Pick one language you will use for every problem. Python, Java and C++ are all fine; switching between them costs time.
- Set a daily slot. Consistency matters more than intensity.
- Keep a notebook of mistakes and patterns. You will reread it before interviews.
Weeks 1 to 2: fundamentals
Get comfortable with the building blocks.
- Time and space complexity (Big O)
- Arrays, strings and basic maths
- Loops, conditions and writing clean functions
- Solving easy problems without looking at hints
Aim for easy problems here. Your goal is speed and accuracy on the basics.
Weeks 3 to 4: core data structures
- Hash maps and sets
- Stacks and queues
- Linked lists
- Sorting and binary search
- Two-pointer and sliding-window patterns
Solve problems by pattern, not randomly. Ten problems on one pattern teach more than ten problems on ten topics.
Weeks 5 to 6: trees, recursion and beyond
- Recursion and backtracking basics
- Binary trees and binary search trees
- Graph basics: BFS and DFS
- Introduction to dynamic programming with the simplest examples
Week 7: projects, CS fundamentals and system basics
Interviews for freshers also test what you have built and what you know about your field.
- Polish one or two projects and be ready to explain every decision
- Revise operating systems, databases (SQL) and networking basics
- Learn the basics of how a web application is structured: client, API, database
Week 8: mock interviews and review
- Do timed practice sessions of 45 to 60 minutes.
- Explain your thinking aloud as you solve, because interviewers assess your reasoning as well as your answer.
- Reread your mistake notebook.
- Practise introducing yourself and your projects in two minutes.
Common mistakes to avoid
- Reading solutions before trying properly for at least 20 to 30 minutes
- Collecting hundreds of problems but never revisiting the ones you got wrong
- Ignoring communication: say what you are doing and why
- Skipping edge cases such as empty input, a single element and duplicates
How to measure your progress
Track how many problems you solve unaided, how long each takes and which topics keep tripping you up. A rating that updates as you improve can help: on Codveri, coding practice and tests feed into a rating on your profile, so you can see your level change over time.
A sample daily routine (90 minutes)
- 10 minutes: reread yesterday's mistake notes.
- 50 minutes: solve one or two problems on the current week's topic, trying on your own first.
- 20 minutes: study the best solution, rewrite it from memory and note the pattern.
- 10 minutes: write the pattern and its trigger in your notebook, for example "sorted array and a target means try binary search or two pointers".
A topic checklist to tick off
- Arrays and strings: reversing, rotating, anagrams, palindromes, prefix sums
- Hashing: frequency counts, two-sum style lookups, grouping
- Linked lists: reversing, detecting cycles, merging
- Stacks and queues: valid brackets, next greater element
- Searching and sorting: binary search variations, merge and quick sort ideas
- Trees: traversals, height, lowest common ancestor
- Graphs: connected components, shortest path on unweighted graphs
- Dynamic programming: climbing stairs, knapsack-style problems, longest common subsequence
What interviewers usually look for
Interviewers for fresher roles rarely expect perfection. They look for clear thinking, correct basic code, sensible handling of edge cases and honest communication. If you get stuck, say what you have tried and ask a clarifying question; that is a strong signal in itself.
If you have a job offer or exam in the meantime
Do not abandon the plan. Cut the daily time rather than the days. Thirty focused minutes keeps the habit and the patterns alive.
Frequently asked questions
How many problems should I solve before interviews?
There is no magic number. Quality matters more than quantity. Understanding around 100 to 150 well-chosen problems across the main patterns is usually more useful than rushing through many more.
Which programming language should a fresher choose?
Choose the language you are most comfortable with and that your target companies accept. Python, Java and C++ are common choices.
Do I need data structures and algorithms for service companies?
Many service and product companies test problem-solving, so basic data structures and algorithms help. The depth expected varies by company, so check the interview pattern of the companies you are targeting.
I only have four weeks. What should I focus on?
Compress the plan: spend a week on fundamentals, two weeks on arrays, strings, hashing and linked lists, and a week on mock interviews and your projects.
- #coding interview
- #fresher jobs
- #DSA
- #placement preparation
- #Codveri