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. The solutions are in pseudocode rather than 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 the next page is about to give you.

  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, worded to unstick you without giving the answer away.

  5. The solution

    Worked through in pseudocode, so you can see why each step is there.

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. Google Play Books is still to come.