How to prep for a coding interview in 4 weeks as a student
Updated November 30, 2026 · 7 min read
You have an internship or new grad interview in about a month, you also have classes, and you've done maybe a handful of LeetCode problems. Four weeks is enough to get noticeably better if you spend the time on the right things. It isn't enough to do everything, so this plan picks.
The plan assumes about 60 to 90 minutes on weekdays and a longer session on one weekend day. That's around 8 to 10 hours a week, which is realistic alongside a normal course load. If you have more time, add problems. If you have less, keep the structure and do fewer problems per topic.
How each practice session works
A good 75-minute session looks like this:
- 10 minutes: redo one problem from a few days ago, from a blank editor.
- 50 minutes: two new problems on this week's topics, with a timebox of about 25 minutes each before you take a hint.
- 15 minutes: write a one-line takeaway for each problem and add anything you needed real help on to your redo list.
The redo step is the part most people skip, and it's the part that makes four weeks actually stick. The guide to practicing without the solution explains the hint ladder and redo schedule in more detail.
Week 1: Arrays, strings, and hashing
These show up constantly and they're the base for everything else. Focus on hash maps and sets, two pointers, sliding window, and prefix sums. Do mostly easy problems for the first few days and move to mediums by the end of the week.
- Goal: about 12 to 15 problems.
- Good examples: Two Sum, Valid Anagram, Group Anagrams, Best Time to Buy and Sell Stock, Longest Substring Without Repeating Characters, Product of Array Except Self, Subarray Sum Equals K.
- Also this week: pick one language and stick with it. Python is a good choice for interviews because it's short to write, but use what you know best.
Week 2: Stacks, linked lists, binary search, and intervals
These are smaller topics that each have a clear pattern. Once you see the pattern, a lot of problems become variations of the same thing.
- Goal: about 12 to 15 problems, mostly medium.
- Good examples: Valid Parentheses, Daily Temperatures (monotonic stack), Reverse Linked List, Merge Two Sorted Lists, Linked List Cycle, Binary Search, Search in Rotated Sorted Array, Merge Intervals.
- Binary search deserves extra attention because off-by-one bugs are so common there. Pick one way of writing it and use it every time.
Week 3: Trees, graphs, and heaps
This is the week that feels hardest, and it's also where a lot of interview questions come from. Get comfortable writing DFS recursively, BFS with a queue, and using a heap for "top k" problems.
- Goal: about 12 problems. Expect them to take longer.
- Good examples: Maximum Depth of Binary Tree, Invert Binary Tree, Binary Tree Level Order Traversal, Validate Binary Search Tree, Number of Islands, Clone Graph, Course Schedule, Kth Largest Element in an Array, Top K Frequent Elements.
- On graph problems, practice the setup too: turning an edge list into an adjacency list, and tracking visited nodes.
Week 4: A bit of DP, then mock interviews and review
Spend the first half of the week on basic dynamic programming. Don't try to master it. Aim to recognize the simple one-dimensional problems and write a memoized recursion. Spend the second half on review and mock interviews.
- DP examples: Climbing Stairs, House Robber, Coin Change, Longest Increasing Subsequence.
- Redo everything on your redo list that you haven't solved cleanly twice.
- Do at least two full mock interviews (more on that below).
- The day before the interview, do one or two easy problems you've already solved, and stop there.
Practice talking, not just solving
Interviewers grade how you communicate as much as whether you finish. Starting in week 2, do at least one problem a day out loud. It feels silly alone, so it helps to have a script:
- Restate the problem and ask one or two clarifying questions.
- Walk through a small example.
- Say the brute force and its complexity.
- Explain the better approach before you code it.
- Code it while narrating what each part does.
- Test it with an example and an edge case, and state the final complexity.
Mock interviews
Do your first mock at the end of week 2 and at least two in week 4. A friend from class works fine. Take turns being the interviewer, use a problem the other person hasn't seen, and set a 40-minute timer. Your school's career center or coding club may run mocks too. The first one will probably go badly, and that's the point. It's much better to find out now that you freeze when someone's watching.
After each mock, write down
- Where you lost the most time.
- Whether you tested your code before saying you were done.
- One thing to do differently next time.
Don't forget the non-coding parts
Prepare a two-minute version of "tell me about yourself" and two or three short stories about projects, including one where something went wrong and what you did about it. Read the job description and know why you want this role. This takes an evening, not a week, and it's easy to leave until it's too late.
If you fall behind
You will miss a few days. Midterms happen. Don't try to catch up by doubling the next day. Drop the lowest-priority topic instead (usually DP, then heaps) and keep the daily habit going. Twenty minutes on a busy day keeps your momentum better than nothing. If you get stuck a lot, the unsticking routine and the debugging checklist will save you time.