Coding interview prep schedule
Enter the weeks you have and the hours a week, and get a dated plan that splits your time across the coding topics, with the problems to work each week.
Your first hour with George Li (60 minutes by video, $250) ends with a written plan within one working day.
Book your first hour ($250)The plan gives every topic one hour, then adds hours to the topics that usually take longest, and keeps the order from the basics to dynamic programming, with mock interviews and review last. It counts 2 problems an hour, half an hour each with the review of your solution. Those weights and that pace are editorial defaults, so move hours to your weak topics once you know them.
How it works
Step 1
Step 2
Step 3
Step 4
How the schedule orders topics, and why
The schedule works through twelve topics in a fixed teaching order: the ground first, the topics that lean on it next, and mock interviews and review last. Arrays, strings, hash maps and sets come before trees and graphs because a tree problem uses a hash map as a tool, and a dynamic programming problem is easier once recursion is familiar. Mock interviews and review sit at the end so that earlier topics are fresh when you test them.
MIT OpenCourseWare describes its 6.006 course, Introduction to Algorithms, as an introduction to mathematical modeling of computational problems, common algorithms, algorithmic paradigms and data structures, with attention to basic performance measures and analysis techniques. The order here follows the same idea at a smaller scale: learn the structures, then the techniques that use them, then how to reason about their cost.
How many weeks and hours a plan needs
The tool takes your weeks, your hours a week and a start date, gives every topic its first hour and then hands each extra hour to the topic with the most weight for the hours it already holds. The working pace on the page is 2 problems an hour, review of each solution included. The table below shows what the tool returns for three sample budgets, so you can see how hours spread. The labels are ours, not a measure of level: pick the budget that fits your calendar, then use the tool for your own dates.
| Order | Topic | Compact: 4 weeks at 8 hours | Steady: 8 weeks at 10 hours | Long: 12 weeks at 10 hours |
|---|---|---|---|---|
| 1 | Arrays and strings | 3 | 8 | 11 |
| 2 | Hash maps and sets | 2 | 6 | 9 |
| 3 | Two pointers and sliding window | 3 | 7 | 11 |
| 4 | Stacks and queues | 2 | 5 | 8 |
| 5 | Linked lists | 2 | 4 | 6 |
| 6 | Binary search | 2 | 5 | 8 |
| 7 | Trees | 4 | 9 | 13 |
| 8 | Graphs and searches | 3 | 9 | 13 |
| 9 | Recursion and backtracking | 2 | 6 | 9 |
| 10 | Heaps and priority queues | 2 | 4 | 6 |
| 11 | Dynamic programming | 4 | 10 | 15 |
| 12 | Mock interviews and review | 3 | 7 | 11 |
A student who has not seen graphs, trees or dynamic programming may want the steady or long budget, because those three topics take the most hours. A student who has finished a data structures course may be fine with the compact one, using the extra hours of review on the topics where the first pass of problems went slowly. If your budget is smaller than twelve hours in total, the tool covers the first topics for one hour each and lists the rest as not reached.
Which language to use
Use the language you write fastest in, because the interview is a test of how you reason, not of which language you chose. What matters more is knowing what the built-in structures cost. The Python documentation’s table of time complexity lists a list append as constant time on average and amortized, a list insert as linear in the worst case, a membership test on a list as linear and a membership test on a set or a dictionary key as constant time on average. Those four facts decide many problems: a loop that tests membership in a list can often be made faster by putting the items in a set first.
| Operation | Average cost | What to do about it |
|---|---|---|
| Append to a list | Constant, amortized | Use it freely to build results |
| Insert at the front of a list | Linear in the list length | Use a double-ended queue when you add or remove at both ends |
| Is x in a list | Linear | Put the items in a set when you test many times |
| Is x in a set, or a key in a dictionary | Constant on average | Use it to turn a nested loop into one pass |
Whatever the language, practice in it from the first hour and write the solutions out on a plain editor or on paper, since an interview may not give you your usual tools. The coding and complexity practice guide has original problems with worked answers.
How to tell you are ready
Readiness is not a number of problems. It is a set of things you can do. Check each one against a problem you have not seen before:
- I can restate the problem in my own words and ask a question about an edge case before I write code.
- I can name a simple solution, say what it costs, and say how a better one would differ.
- I can write the solution in my chosen language without looking anything up, and walk through a small example by hand.
- I can say the time and space cost of what I wrote and where it could be wrong.
- I can do the above out loud while someone watches, inside one hour.
If a topic fails the check, give it two more hours from the plan and test it again on a new problem. Do not move on because the hours ran out; move on when the check passes or when the calendar says you must.
If the interview is next week
With a week left, do not start the whole list. Take a short budget in the tool, such as one week at a few hours a day, and read what it returns: it gives each topic one hour and goes first to the earlier topics. Spend those hours on the topics the interview is likely to include, which the posting and the employer’s own preparation pages tell you. Then do two or three timed problems out loud, with a friend or a coach, and sleep. Six topics you know well are a better use of one week than twelve you only skimmed.
Practice with a person can be a single session: a mock interview or a problem hour with George is $250 here, and the packages page shows the price for a longer season. You write every line of the solution yourself.
Want help with your own applications? See a career coach for college internships, internship interview coaching, or resume review for internships.
Want a second pair of eyes?
In a session George marks up your own messages and plans with comments and questions.
- Your first purchase is refundable for unused time within 7 days. Nothing renews. Refund terms