Buy LeetCode book.

Has LeetCode helped you a lot?

Consider buying our 1st edition eBook as the perfect companion to our Online Judge service. We want to help you to understand what it takes to write clean code and apply these fundamentals in a real interview.

Basic Edition


eBook only

  • 100 pages eBook PDF version
  • Solutions to 50 common questions
Most popular

Complete Edition


eBook + exclusive Online Judge

  • 100 pages eBook PDF version
  • Solutions to 50 common questions
  • Exclusive access to 10 brand new questions in Online Judge

Comprehensive Solutions

This book is not just questions and answers. It opens with a discussion of strategies to tackle each question and its similar questions, diving into exactly how to break down and solve it.


New Questions

This book includes 100 pages of content. It contains 50 questions grouped by categories, including 10 brand new questions. These new questions will be available in LeetCode soon. Practice always optimizes learning and understanding.


Interview Tips

Feeling nervous and don't know what kind of questions you should ask in an interview? Asking clarifying questions is important. This book shows examples of great questions you should ask your interviewer.

Buyers FAQ

If I buy the eBook only (Basic Edition), will I have access to the book's problems in Online Judge?
40 questions in the book are free for you to access in Online Judge, but the remaining 10 new questions are exclusive to buyers of Complete Edition only.
What are the 10 new questions?
  1. Binary Tree Upside Down
  2. Read N Characters Given Read4
  3. Read N Characters Given Read4 II - Call multiple times
  4. Longest Substring with At Most Two Distinct Characters
  5. One Edit Distance
  6. Missing Ranges
  7. Two Sum II: Input array is sorted
  8. Two Sum III: Data structure design
  9. Reverse Words in a String II
  10. Coins in a Line
When will the new questions be available in Online Judge?
We will release the new questions exclusively to buyers of Complete Edition gradually. We will notify you via email as soon as a new question is available so you won't miss them.
I have purchased the Complete Edition but could not access the new problems. Help?
Did you purchase the book with a different email from the email you registered in OJ? If yes, please contact us with your order number and we will grant access to your account asap.
What are the differences between a LeetCode article and the book?
Although articles provide high quality content about how to solve a problem, the book is much more compreshensive and contains more material, such as:
  1. More approaches are included in the book with analysis of runtime and space complexity.
  2. The Example Questions Candidate Might Ask section provides you with a sample of important clarifying questions to ask.
  3. Many problems have a Further Thoughts section to challenge and enhance your understanding.
If there is a second edition of the ebook in the future, will I have to pay the same amount to get a new one?
It really depends on the contents of the second edition. If the second edition is simply just additional questions based on the first edition, I might consider giving a discount to buyers of first edition. Or the second edition could turn out completely different from the first edition, I really don't know at this point.
Which language is used for solutions in the ebook?
All solutions are written in Java.
Is there a sample I can look at?
Sorry. We do not have a sample yet.