pickuma.
Dev Knowledge

The Best Coding Interview Books: What to Buy in Order

Cracking the Coding Interview hasn't been revised since 2015. What still earns shelf space, which job each book does, and the order to buy them in.

6 min read
Blueprint-style line illustration: A stack of hardcover books with one older volume pulled out and set aside.

The default recommendation in this category has not shipped a new edition since July 2015. Cracking the Coding Interview is still on its 6th edition — 708 pages, 189 questions, every solution written in Java — and it is still the first title most people name. Eleven years is a long gap in a market where the same loop now adds a system design round for anyone past a couple of years of experience.

We read tables of contents, sample chapters and current print listings for the five books below. We did not measure offer rates, we did not read the C++ or Java editions of Elements of Programming Interviews page by page, and no book here makes anyone pass an interview. The one thing a book does better than a problem list is explain why an approach works. Judge them on that and the shortlist gets short fast.

The expensive mistake is buying two books for the same job

These books cover three jobs that barely overlap: what the process expects of you, drilling problems, and system design. The most common purchase is Cracking the Coding Interview plus Elements of Programming Interviews — two books for job two, nothing for jobs one and three, and about $75 spent on overlapping problem sets.

CtCI’s durable value is its non-code half: the walkthroughs of what an interviewer is scoring while you flail, the behavioral prep, the chapter on offers and negotiation. That material aged well. The problems aged less well. Java-only solutions, and a difficulty distribution that sits below what a current senior loop asks. If you interview in Python or Go you translate every solution yourself, which is either useful practice or a tax depending on your patience.

The drill layer: one book is harder than your interview, one is easier

Elements of Programming Interviews in Python carries roughly 250 problems and runs consistently harder than CtCI. The solutions are compact — dense, idiomatic Python with very little hand-holding — which is exactly right if you already solve mediums and punishing if you do not. Its structure is also better for spaced practice than CtCI’s: problems are grouped by data structure with explicit variants attached, so you can hammer one shape for an evening instead of bouncing.

Grokking Algorithms, Second Edition (Manning, 2024) is not an interview book at all, and that is the point. Around 350 pages, heavily illustrated, covering binary search, sorting, recursion, hash tables, graphs and Dijkstra, greedy, dynamic programming and k-nearest neighbours, with the second edition adding tree material the first lacked. If a chapter of EPI reads as noise, the failure is upstream of the interview and this is the cheapest fix for it.

System design, and the one reference that outlives the loop

System Design Interview – An Insider’s Guide (Alex Xu, 2020) is 16 chapters of worked designs: rate limiter, consistent hashing, key-value store, unique ID generator, URL shortener, web crawler, notification system, news feed, chat, search autocomplete, YouTube, Google Drive. It is the only book on this page written for the round most candidates lose. Its weakness is structural — it is a set of answers rather than a method, so it is easy to memorise the diagrams and then get taken apart by a single follow-up about write amplification. Read it as worked examples, not as a script.

The Algorithm Design Manual, 3rd edition (Skiena, Springer, 2020) is the outlier: about 800 pages, and Part II is a catalog of roughly 75 classic problems mapped to the approaches that solve them. It is a poor cram book and a good permanent one — the volume you still open two years later when a production problem turns out to be set cover wearing a hat.

Buy in this order, and know when to buy none

Grokking first, but only if you cannot reliably reason through a medium-difficulty problem — every other book on this list assumes a fluency it does not teach. CtCI second, read early enough that its process chapters can still change how you prepare. EPI third as the actual drill. Xu’s Volume 1 only if your loop has a design round. Skiena after the offer.

The honest case for buying none: if you already solve mediums in under 30 minutes and can state your complexity without being asked, a book is a worse problem source than a free curated list. Books lose on volume, on feedback, and on recency. They win on explanation. The condition that flips it back toward paper is narrow but real — you keep re-solving the same category of problem and still cannot say why the working approach works.

Notion

A database with three properties and two date fields is enough for the review log above, and the spaced-repetition filter takes about ten minutes to set up.

Free personal plan; Plus from $10/user/month billed annually

Try Notion

Affiliate link · We earn a commission at no cost to you.

FAQ

Is Cracking the Coding Interview worth buying if I interview in Python?
Only for the non-code chapters. All 189 solutions in the 6th edition are Java and there is no Python edition, so you either translate as you go or treat the problem set as secondary and drill elsewhere.
Do I need both volumes of System Design Interview?
No. Volume 1 covers the designs that come up most often in general loops. Volume 2 goes into narrower territory such as payment systems, distributed message queues and stock exchanges; buy it only if that is your domain.
Can I skip books entirely and just grind problems online?
Yes, if you already solve mediums consistently. A problem list beats a book on volume and freshness. Books only pull ahead when you need the explanation rather than another repetition.

Related tools

Some links above are affiliate links. We may earn a commission if you sign up. See our disclosure for details.

Related reading

See all Dev Knowledge articles →

Get the best tools, weekly

One email every Friday. No spam, unsubscribe anytime.