Front cover of Cracking Leetcode 75 by Lokesh Bhoyar

Educational & Professional · Computers & Internet

Cracking Leetcode 75

Learn the Trick, Not the Puzzle

The 75 problems everyone grinds through are really about ten ideas wearing 75 different hats — sliding window, two pointers, prefix sums, monotonic stacks, binary search on the answer, dynamic programming.

Learn the ten, and the seventy-five stop being seventy-five separate things to memorise. Solutions are written in pseudocode, not any one language, so the thinking transfers to whatever you write in.

Pages
374
Chapters
22
Problems
75
Formats
4

Five pages per problem

Every one of the 75 problems is laid out the same way, so you always know where you are and how much help you are about to be given.

  1. The story

    Where this shape of problem actually shows up, before any code appears.

  2. The problem

    Stated plainly, with the constraints that decide which pattern applies.

  3. The thinking page

    Space to work it out yourself. This is the page that does the teaching.

  4. The hint

    One nudge toward the right idea — enough to unstick you, not enough to spoil it.

  5. The solution

    Worked through in pseudocode, with the reasoning kept in view.

The ten ideas

Twenty-two chapters build these up one at a time, and each chapter closes with a one-page revision summary you can come back to the night before an interview.

Where to buy

Available now in ebook, paperback and hardcover. More stores are on the way.