What are you working on? Kindle Scribe
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows.
Buy New
-35% $25.79
FREE delivery Tuesday, May 5 on orders shipped by Amazon over $35
Ships from: Amazon.com
Sold by: Amazon.com
$25.79 with 35 percent savings
List Price: $39.95 Image
Get Fast, Free Shipping with Amazon Prime
FREE delivery Tuesday, May 5 on orders shipped by Amazon over $35
Or Prime members get FREE delivery Tomorrow, May 1. Order within 2 hrs 55 mins. Join Prime
In Stock
$$25.79 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$25.79
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
Quick refund
Usually issued within 24 hours. See exceptions
FREE return
At least one free return option available.
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$8.53
Gently used with minimal wear on the corners and cover. A few pages may contain light highlighting or writing, but the text remains fully legible. Dust jacket may be missing, and supplemental materials like CDs or codes may not be included. May be ex-library with library markings. Ships promptly! Gently used with minimal wear on the corners and cover. A few pages may contain light highlighting or writing, but the text remains fully legible. Dust jacket may be missing, and supplemental materials like CDs or codes may not be included. May be ex-library with library markings. Ships promptly! See less
FREE delivery May 8 - 12. Details
In stock
$$25.79 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$25.79
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Ships from and sold by Dream Books Co..
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

  • Cracking the Coding Interview: 189 Programming Questions and Solutions

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Cracking the Coding Interview: 189 Programming Questions and Solutions 6th Edition

4.7 out of 5 stars (9,675)

{"desktop_buybox_group_1":[{"displayPrice":"$25.79","priceAmount":25.79,"currencySymbol":"$","integerValue":"25","decimalSeparator":".","fractionalValue":"79","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"gyh24tiIEPEcN6p1aXOFIl%2FjAEdAhjelX8rY3dWlkNDutWF9QZO7gG87CeBFMUNvi9U64%2BiFc4nlG9CMGcnM%2BJL1Ws0mx2Xqua3ZdeLOZ8n5%2B3pz58O6PeCT4VkNNQIhc7w2ozBIvXwrQxDL6K0PYw%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$8.53","priceAmount":8.53,"currencySymbol":"$","integerValue":"8","decimalSeparator":".","fractionalValue":"53","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"gyh24tiIEPEcN6p1aXOFIl%2FjAEdAhjeloojIiljOzTs5jMI%2BIvBlVwKTxDMg1iFLnpuNuRuAjRYLEE1WdbC79gnoqHcjEKtSW2kS6c62Z2t8C%2FRylq0XXfvVTug8NRlXSD%2BZMfuONQ8Su8huzCLsnJVomiZoZ31gQhdo%2FrfjyrD%2BGpFu0du2sQ%3D%3D","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

I am not a recruiter. I am a software engineer. And as such, I know what it's like to be asked to whip up brilliant algorithms on the spot and then write flawless code on a whiteboard. I've been through this as a candidate and as an interviewer.

Cracking the Coding Interview, 6th Edition is here to help you through this process, teaching you what you need to know and enabling you to perform at your very best. I've coached and interviewed hundreds of software engineers. The result is this book.

Learn how to uncover the hints and hidden details in a question, discover how to break down a problem into manageable chunks, develop techniques to unstick yourself when stuck, learn (or re-learn) core computer science concepts, and practice on 189 interview questions and solutions.

These interview questions are real; they are not pulled out of computer science textbooks. They reflect what's truly being asked at the top companies, so that you can be as prepared as possible.
WHAT'S INSIDE?

  • 189 programming interview questions, ranging from the basics to the trickiest algorithm problems.
  • A walk-through of how to derive each solution, so that you can learn how to get there yourself.
  • Hints on how to solve each of the 189 questions, just like what you would get in a real interview.
  • Five proven strategies to tackle algorithm questions, so that you can solve questions you haven't seen.
  • Extensive coverage of essential topics, such as big O time, data structures, and core algorithms.
  • A behind the scenes look at how top companies like Google and Facebook hire developers.
  • Techniques to prepare for and ace the soft side of the interview: behavioral questions.
  • For interviewers and companies: details on what makes a good interview question and hiring process.

Illustrations noteIllustrations: Illustrations, black and white

Sponsored
Based on products customers bought together

4.74.7 out of 5 stars 9,675
-35% $25.79
List:$39.95
In Stock
Ships from and sold by Amazon.com.
+
4.54.5 out of 5 stars 1,265
-6% $42.35
List:$45.00
In Stock
Ships from and sold by Amazon.com.
+
4.54.5 out of 5 stars 490
-18% $49.24
List:$59.99
In Stock
Ships from and sold by Amazon.com.
Total price:
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.

Customers also bought or read

Loading...

Editorial Reviews

About the Author

Gayle Laakmann McDowell is the founder and CEO of CareerCup and the author of Cracking the PM Interview and Cracking the Tech Career.

Her background is in software development. She has worked as a software engineer at Google, Microsoft, and Apple. At Google, she interviewed hundreds of software engineers and evaluated thousands of hiring packets on the hiring committee. She holds a B.S.E. and M.S.E. in computer science from the University of Pennsylvania and an MBA from the Wharton School.

She now consults with tech companies to improve their hiring process and with startups to prepare them for acquisition interviews.

Product details

  • ASIN ‏ : ‎ 0984782850
  • Publisher ‏ : ‎ CareerCup
  • Publication date ‏ : ‎ July 1, 2015
  • Edition ‏ : ‎ 6th
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 687 pages
  • ISBN-10 ‏ : ‎ 0984782869
  • ISBN-13 ‏ : ‎ 978-0984782857
  • Item Weight ‏ : ‎ 2.75 pounds
  • Dimensions ‏ : ‎ 7 x 1.59 x 10 inches
  • Part of series ‏ : ‎ Cracking the Interview & Career
  • Best Sellers Rank: #22,915 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.7 out of 5 stars (9,675)

About the author

Follow authors to get new release updates, plus improved recommendations.
Gayle Laakmann McDowell
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Gayle Laakmann McDowell is an author, consultant, and founder focusing on improving tech hiring for both the interviewer and the candidate.

Gayle has worked as an engineer for Google, Microsoft, and Apple. Most recently, at Google, she served on the hiring committee where she interviewed hundreds of candidates and evaluated thousands more. It was here that she discovered the disconnect between candidates, their skill set, and their interview performance.

Though her company, CareerCup, Gayle has worked with many of the top tech companies to reform their hiring practices and implement interviewer training programs.

She is the author and creator the best-selling Cracking the Interview & Career series: Cracking the Coding Interview, Cracking the PM Interview (co-authored with Jackie Bavaro), Cracking the PM Career (co-authored with Jackie Bavaro), and Cracking the Tech Career

Gayle holds a bachelor's and master's in Computer Science from the University of Pennsylvania and an MBA from the Wharton School of Business.

She currently consults, writes, and codes from her home in Palo Alto, California. She can be found online at gayle.com, twitter (@gayle), and facebook (@gayle).

Sponsored

Customer reviews

4.7 out of 5 stars
9,675 global ratings
Sponsored

Customers say

Customers find this coding interview preparation book excellent, particularly for software engineers entering the field, with detailed explanations of advanced topics and useful information on algorithms. Moreover, the book is well-suited for beginners and techies, and customers consider it well worth the money. However, customers disagree on the book's readability, with some finding it user-friendly while others say it's difficult to follow. Additionally, the effectiveness receives mixed feedback, with some praising the solutions while others find them not perfect.
AI Generated from the text of customer reviews

Select to learn more

346 customers mention content, 327 positive, 19 negative
Customers praise the book's content, describing it as fantastic and of good quality, with one customer noting it's particularly suitable for beginners.
...Other than that great book. I passed my previous interviews with this book. Some questions are represented in a way how a live interviewer would ask....Read more
I’m sure this is a good book. However, you would think a book on software would have what language it is focused on readily available. It does not....Read more
Excellent book. Extremely thorough and detailed, but you can also apply one chapter at a time....Read more
Nice book helped me a lot in understand what industry seeks in skills that helped me understand us IT industry.Read more
166 customers mention interview preparation, 160 positive, 6 negative
Customers find this book to be an excellent guide to interview preparation, containing valuable insights into the interview process and being incredibly useful for practicing coding questions.
This a great book for interview preparationRead more
Great interview prep! Covers exactly what you need to know.Read more
Perfect book for interview.Read more
This book is ideal for coding interviews / online judge sessions. Quickly helped recap Computation Thinking knowledge with clear examples.Read more
139 customers mention detailed, 124 positive, 15 negative
Customers find the book detailed and comprehensive, with advanced topics that provide thorough explanations and hints for every question. They appreciate how it helps understand the purpose of using data structures.
Very detailed and encyclopedic coverage of programming tasks. It would take months to work through them all....Read more
...Very practical and to the point, and very usable and readable for young adults and college students....Read more
Good book that has a wealth of knowledge to keep you up to speedRead more
...Very good introduction to the process of software engineering interview process.Read more
123 customers mention usefulness, 117 positive, 6 negative
Customers find the book very helpful and educational, noting that it provides useful advice and teaches various techniques. One customer mentions it serves as a great way to prep on all of the various topics.
Really helpful references and guides. Very useful, even after you land your first roleRead more
Indepth and useful for someone who is trying to learn the ways of interviewing. The book is almost as new- no complaints!Read more
...Overall, I think this a very helpful book. I would recommend you begin reading this book immediately after your first course on Algorithms....Read more
The content of this book are beyond great, great explanation and exercises....Read more
58 customers mention suitability for beginners, 55 positive, 3 negative
Customers find the book suitable for beginners and recommend it for all levels of programmers, with one customer noting it serves as a great refresher on certain topics.
...to much to say, just that if you want to start studying it is a good book to startRead more
Difficulty level-Intermediate. Best for beginners.Read more
Has a lot of different types of interview questions. Great book for getting the practice and prep for technical coding interviews.Read more
Good book for coding enthusiasts.Read more
52 customers mention value for money, 44 positive, 8 negative
Customers find the book well worth their money, with one customer noting it's worth the effort to work through it.
This is great for preparing for technical interviews! Must have. Worth every penny.Read more
...It's really huge and has a lot of exercises. It a good investment.Read more
great for the price! worked well....Read more
The quality and price is good.Read more
70 customers mention readability, 47 positive, 23 negative
Customers have mixed opinions about the book's readability, with some finding it understandable and user-friendly, while others report it is difficult to follow.
It is a really good book, very well organized and easy to read. The writer is a genius!...Read more
...It is well-written, interesting and brilliant! This is really a must-have book for every developer!Read more
This book is very hard to follow. The author does a terrible job explaining the technical topics and does not provide useful insights.Read more
...CS fundamentals this books offers a refresher course and easy to follow examples.Read more
27 customers mention effectiveness, 16 positive, 11 negative
Customers have mixed opinions about the book's effectiveness, with some finding it perfect for their needs while others describe it as useless.
great for the price! worked well....Read more
...zero java experience and you only know Python, unfortunately, this book is useless. All the talking points and examples are on java....Read more
...Just a warning, this is a problem solving book. If you not interested in trying the problems you will not like this book.Read more
...Useless.Read more
Best book for Interview Prep
5 out of 5 stars
Best book for Interview Prep
I bought the sixth edition within few days of release and it has been incredibly useful to practice interview questions. This new version has a bunch of hints for every question which you can use if you are stuck somewhere in the middle - very similar to a real interview. I found some of the tips quite helpful - like jumping directly to whiteboard only the function that is needed rather than writing every part of the class, using short alias for long words in the code etc. These tricks helped save time during white boarding questions. Also, the idea of first coming up with a brute force solution and then optimizing it from there, was quite helping Solving the questions in this book would tune your mind to get ready to face programming interviews. I would definitely recommend everyone to buy the book.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

  • Reviewed in the United States on September 20, 2016
    Format: PaperbackVerified Purchase
    While this book is meant for interview practice, I would recommend you still read it just for fun if you're into algorithms.

    I've always believed that there's no "crack" to coding interviews; it's just a matter of whether you can code or not (well, at least at those sane companies not filling up school buses with golf balls). And that requires practice. Lots of practice. Which is why I spent all my free time working out problems on Hackerrank. For me, this went well . . . for a while.

    But there comes a point at which you get stuck. I remember working on some hackerrank problems in the medium to hard difficulty which I would not be able to proceed for weeks and weeks. No amount of googling for information, discussion boards or stack overflow threads paint a complete picture to help you when you're stuck.

    After countless such occasions and failing a few interviews, I gave in and bought this book. After all it was $20 - the cost of an uber to work.
    Now, I wish I had bought this sooner!

    Within reading the first two chapters I've already learnt so much about how to think about coding problems. There's also a nice collections of custom data structures at the end of the book. I've swiped some data structures straight out of this book and use them in my day-to-day life too.

    Gayle has done a tremendous job of using words to explain how that weird gooey gel inside your head moves like when problem-solving. She deconstructs every approach to tackle a problem into atomic pieces. She goes into great depth about alternative designs, tradeoffs and runtime complexity. She talks about visualizing recursive calls as trees, thinking about BUD*, amortized analysis of ArrayList and much more. The great thing is that Gayle goes into copious amounts of details for each solution - she talks about how to start from a brute force solutions and optimize each component one-by-one and talks about tradeoffs in approaches.

    Overall, I think this a very helpful book. I would recommend you begin reading this book immediately after your first course on Algorithms. It will certainly help drill down the concepts and help strengthen your fundamentals.

    *BUD is a special term the author uses to describe strategies to optimize solutions
    28 people found this helpful
    Report
  • Reviewed in the United States on April 13, 2026
    Format: PaperbackVerified Purchase
    amazing book , helped me to get a job as a software engineer
  • Reviewed in the United States on July 9, 2015
    Format: PaperbackVerified Purchase
    Since the first edition, I've recommended Cracking the Coding Interview to people preparing for technical interviews. Gayle has a depth and breadth of knowledge that she shares freely in this book. She means what she says too: she's not a recruiter, or a sourcer, or affiliated with any of those groups -- she's an engineer who knows what it takes to be prepared for and ace a technical job interview.

    Full disclaimer: I worked with Gayle at Google, and I know her -- and back in the day I even saw her code. Forearmed with this additional information on how she works, I can say that she really knows her stuff here.

    There's a reason why multiple companies recommend this book to prospective candidates to prepare. It's not a cookbook, you can't just learn the examples rote and then ace an interview. For one thing: hiring managers like me know about the book, and we're not going to let our teams ask exactly these questions. However, by working through the examples in the book, you will gain an understanding and refresh your software engineering knowledge to a level where any algorithm, design or coding question that is thrown at you will be answerable.

    By following and solving the examples in this book, you'll refresh your memory on how to approach these problems. You'll make mistakes, and be more comfortable with making those mistakes and then moving past them. You'll get some insight into how you approach problems and potential pitfalls in your methodology. There are incredibly useful tips on how to describe your solutions, how to work through a coding question, and how to answer some more thorny behavioral questions.

    The 6th edition, with its additional 50+ questions, expanded solutions and explanations of the tech hiring process will put you in a good position to do your best in your job interview. As a hiring manager, I want you to do your best. The better you are prepared, the less nervous you'll be when you interview, and the better you'll perform. This book is an indispensable part of your interview preparation.
    9 people found this helpful
    Report
  • Reviewed in the United States on December 3, 2025
    Format: PaperbackVerified Purchase
    good book

Top reviews from other countries

Translate all reviews to English
  • Madson Marcelo
    5.0 out of 5 stars Livro muito bom, mas fui taxado
    Reviewed in Brazil on October 2, 2025
    Format: PaperbackVerified Purchase
    Livro excelente.
    Report
  • Melita
    5.0 out of 5 stars Book
    Reviewed in India on April 19, 2026
    Good book if you are preparing for placements
  • UQI8
    5.0 out of 5 stars iyi paketleme güzel ürün
    Reviewed in Turkey on May 26, 2025
    Format: PaperbackVerified Purchase
    iyi paketleme güzel ürün
  • Victor
    5.0 out of 5 stars Amazing book and the code is very readable
    Reviewed in Mexico on May 19, 2024
    Format: PaperbackVerified Purchase
    The perfect choice to land your next programming job, all the text, diagrams and code printed are readable and very easy to follow.
  • Justin
    5.0 out of 5 stars Changed the way I looked at a lot of problems
    Reviewed in Canada on October 3, 2016
    Format: PaperbackVerified Purchase
    This is a really good book. It has a lot of really good problems, amazing career advice, and just a lot of worthwhile content for the price. My favourite thing about this book is how it explains how you should get in the habit of being able to do the same problem different ways or look at it at a different angle. Sure, you might be able to write a one line hack that solves a problem quickly and very efficiently, but what if you had to solve it another way, using a much more unconventional approach?

    Personally I'm working towards being a sysadmin/database admin and programming isn't the main focus of my education but the more I use it the more I can see it being a required skill for employment as I approach my now graduating year. Also this book has motivated me to learn Java much better.

    Anyway aside from all the great programming advice, it also offers some really nice insights into the hiring process of very high end tech companies and also things you should do to improve your chance of being hired.. and I can tell you it doesn't always come down to how well you can solve complex problems.