Buy New
-
To see product details, add this item to your cart.
Ships from: Amazon.com Sold by: Amazon.com
Save with Used - Good
-
To see product details, add this item to your cart.
Ships from: Seattlegoodwill Sold by: Seattlegoodwill
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
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.
Follow the author
OK
Cracking the Coding Interview: 189 Programming Questions and Solutions 6th Edition
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
- ISBN-100984782869
- ISBN-13978-0984782857
- Edition6th
- Publication dateJuly 1, 2015
- LanguageEnglish
- Dimensions7 x 1.59 x 10 inches
- Print length687 pages
Discover the latest buzz-worthy books, from mysteries and romance to humor and nonfiction. Explore more
Frequently bought together

Customers who viewed this item also viewed
Beyond Cracking the Coding Interview: Pass Tough Coding Interviews, Get Noticed, and Negotiate Successfully (Cracking the Interview & Career)PaperbackFREE Shipping by AmazonGet it as soon as Wednesday, Jun 3
System Design Interview – An insider's guidePaperbackFREE Shipping by AmazonGet it as soon as Wednesday, Jun 3
Coding Interview Patterns: Nail Your Next Coding InterviewPaperbackFREE Shipping by AmazonGet it as soon as Wednesday, Jun 3
System Design Interview – An Insider's Guide: Volume 2PaperbackFREE Shipping by AmazonGet it as soon as Wednesday, Jun 3
Grokking Algorithms, Second Edition: An illustrated guide for programmers and other curious peoplePaperbackFREE Shipping by AmazonGet it as soon as Wednesday, Jun 3
Ace the Data Science Interview: 201 Real Interview Questions Asked By FAANG, Tech Startups, & Wall StreetPaperbackFREE Shipping by AmazonGet it as soon as Wednesday, Jun 3
Customers also bought or read
- System Design Interview – An insider's guide#1 Best SellerCloud Computing
Paperback$39.99$39.99FREE delivery Wed, Jun 3 - Elements of Programming Interviews in Python: The Insiders' Guide#1 Best SellerGenetic Algorithms
Paperback$37.10$37.10FREE delivery Wed, Jun 3 - Grokking Algorithms, Second Edition: An illustrated guide for programmers and other curious people
Paperback$37.72$37.72FREE delivery Wed, Jun 3 - Cracking the Tech Career: Insider Advice on Landing a Job at Google, Microsoft, Apple, or any Top Tech Company
Paperback$17.89$17.89Delivery Wed, Jun 3 - The Pragmatic Programmer: Your Journey To Mastery, 20th Anniversary Edition (2nd Edition)#1 Best SellerSoftware Testing
Hardcover$52.99$52.99FREE delivery Wed, Jun 3 - Coding Interview Patterns: Nail Your Next Coding Interview#1 Best SellerMathematical & Statistical Software
Paperback$40.00$40.00FREE delivery Wed, Jun 3 - Programming Interviews Exposed: Coding Your Way Through the Interview
Paperback$26.77$26.77Delivery Wed, Jun 3 - Introduction to Algorithms, fourth edition#1 Best SellerComputer Algorithms
Hardcover$102.99$102.99FREE delivery Wed, Jun 3 - The Algorithm Design Manual (Texts in Computer Science)
Hardcover$53.43$53.43FREE delivery Wed, Jun 3 - Data Structures and Algorithms Made Easy: Data Structures and Algorithmic Puzzles
Paperback$29.41$29.41Delivery Thu, Jun 4 - A Common-Sense Guide to Data Structures and Algorithms, Second Edition: Level Up Your Core Programming Skills
Paperback$40.00$40.00FREE delivery Wed, Jun 3 - Elements of Programming Interviews in Java: The Insiders' Guide
Paperback$36.99$36.99FREE delivery Wed, Jun 3 - Design Patterns: Elements of Reusable Object-Oriented Software#1 Best SellerObject-Oriented Design
Hardcover$26.59$26.59Delivery Jun 9 - 12 - Hacking the System Design Interview: Real Big Tech Interview Questions and In-depth Solutions
Paperback$26.99$26.99Delivery Wed, Jun 3 - AI Engineering: Building Applications with Foundation Models#1 Best SellerNatural Language Processing
Paperback$57.00$57.00FREE delivery Wed, Jun 3 - HTML and CSS: Design and Build Websites#1 Best SellerCSS Programming
Paperback$13.90$13.90Delivery Wed, Jun 3 - Operating Systems: Three Easy Pieces#1 Best SellerComputer Operating Systems Theory
Paperback$28.27$28.27Delivery Wed, Jun 3 - Heard on The Street: Quantitative Questions from Wall Street Job Interviews
Paperback$45.00$45.00FREE delivery Wed, Jun 3 - A Philosophy of Software Design, 2nd Edition#1 Best SellerMicrosoft Programming
Paperback$22.95$22.95Delivery Wed, Jun 3 - Ace the Coding Interview: 266 Real Interview Questions with Step-by-Step Solutions to Land Top Tech Jobs
Paperback$35.00$35.00FREE delivery Wed, Jun 3 - The Software Engineer's Guidebook: Navigating senior, tech lead, and staff engineer positions at tech companies and startups#1 Best SellerUML Language
Paperback$34.49$34.49Delivery Wed, Jun 3 - Designing Machine Learning Systems: An Iterative Process for Production-Ready Applications
Paperback$40.00$40.00FREE delivery Wed, Jun 3
Editorial Reviews
About the Author
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: #14,859 in Books (See Top 100 in Books)
- #1 in Data Structure and Algorithms
- #10 in Software Development (Books)
- #11 in Job Hunting (Books)
- Customer Reviews:
About the author

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).
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Generated from the text of customer reviewsSelect to learn more
Reviews with images
Top reviews from the United States
- 5 out of 5 stars
It's a great book
Reviewed in the United States on September 20, 2016While 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
29 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
A great interview preparation book, made even better with this edition.
Reviewed in the United States on July 9, 2015Since 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 helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
best book for SW engineer
Reviewed in the United States on April 13, 2026amazing book , helped me to get a job as a software engineer
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 4 out of 5 stars
Nestor Martourez
Reviewed in the United States on December 3, 2025good book
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Best book purchase I have ever made, unreservedly
Reviewed in the United States on June 21, 2017Best book I ever bought. I'm fairly certain the interview preparation guide and sample coding questions gave me the edge I needed to get through a recent, grueling coding interview emerging to be described by my recruiter and the clients as the "best candidate they'd seen in weeks".
I was inspired to buy the book and learn from it after having made it all the way to the final phase of a long multi-test interview process with another company. What I lacked was the ability to resist the urge to panic and the confidence to do what I needed to succeed in a time-pressured whiteboard question. Although my portfolio was great and my personality evaluations very positive, with my terrible whiteboard performance I left those fine people with the impression I didn't know my head from my you know what.
I found that the book's instructions were very helpful in providing a blueprint in how to slow down and think methodically and as a result I'm not just better at interviews, but a better coder overall I believe. By no means am I finished absorbing all the wisdom from this book, but I've already reaped immeasurable reward from just one short dedicated week studying it.
Finally, while certainly this book cannot take you from 0 to 60 or replace a lack of portfolio, it will help polish experienced coders, especially the self-taught, maybe who need a little help communicating their ideas or tackling the kind of problems that are current interview fodder, which as we all know can be quite alien from the comfort zones of our specialties. Although, pure beginners may also get some value out of this as a learning checklist for being able to do the minimum of what the industry now expects developers to know well.
Just buy the book!
5 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Good quality
Reviewed in the United States on May 6, 2026Better than I expected. Thank you





Better than I expected. Thank you
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Great Test Of Knowledge For Computer Scientists
Reviewed in the United States on September 23, 2016Cracking the Coding Interview contains tons of problems for solving with full coded solutions in the back of the book. The focus is on the problems themselves and techniques for solving interview questions.
There is still about 100 pages at the beginning about how companies work and what to do at an interview. This applies mostly to companies in Silicon Valley and primarly at major tech companies such as Google.
What make the problems so interesting is that there are many different solutions to the same problem. Some of the times I thought I had an optimal solution, and looked at the answer to find out there were a couple better solutions. Other times I would have a solution that was not listed but was of the same running time. Many times I was not able to get the answer and these problems will be difficult for even the most experienced computer scientist.
The material covers basically what a good university program should teach you. It focuses on algorithm knowledge, although there are chapters with problems about OOP, and the Java language. Most of the solutions are programmed in Java given in the back.
A lot of thought was put in how to structure this book. There are hints for each problem. This is used to simulate the interview environment where if you got stuck you should ask questions and hopefully the interviewer will give you a hint. The hints are not near the answers section so you are not tempted to glance at the answer first.
Just a warning, this is a problem solving book. If you not interested in trying the problems you will not like this book.
2 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
I was never a smart student in the classroom
Reviewed in the United States on November 9, 2017I was never a smart student in the classroom. However, I was lucky to get selected to the best Engineering college in the country, where only top 300 maths stream students from the whole country yearly get selected to the national University Program. I passed out in 2006, but was not selected to the CSE program, because only the smarted 50 was chosen. Since then I never thought I will ever learn programming, or I could never work in the lucrative Software Field. However later after the Uni, I developed an interest in learning Programming for my Living, and since then I kept learning ever since, failing at some places, never giving up, growing up with some confidence...But was a tough Journey. Trying many courses, working every day after hours, for 11 years continuously working hard generally more than 12 hours at average on this field, and Have read, and followed a lot of books, nothing truly makes me confident. I realized, somewhere I have missed some fundamentals, some patterns of thinking, which kept me scared and unconfident, keeping a doubt about my fundamental expertise, in a far unrecognize place of my heart.
Recently I got an interview call to work as a Google Contractor, which really impressed me. Again I found out, getting my self-prepared for such a challenge, I am not yet ready. I was feeling, I am missing some way of thinking. I got an Amazon interview. One of my friends recommend me this book, But by that I have already read, enough about the feedback for the book. I have my second interview for Amazon today, in other few hours. I am still not confident about Programming because I could not stay enough with the Book. However, I already have the feeling that this book is the most enlightening book, if you are like me, not very confident, not very super smart and still are planning to crack a coding interview with some smart answers. The book has extraordinarily smart real-world example solutions to some well-known/well-unknown interview questions, without which an average ordinary hardworking brain like of mine (not a college superstar nerd), could not imagine alone. Thank you, Gayle Laakmann McDowell. She is a Genious.
16 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Top reviews from other countries
Madson Marcelo5 out of 5 starsLivro muito bom, mas fui taxado
Reviewed in Brazil on October 2, 2025Livro excelente.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Melita5 out of 5 starsBook
Reviewed in India on April 19, 2026Good book if you are preparing for placements
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
UQI85 out of 5 starsiyi paketleme güzel ürün
Reviewed in Turkey on May 26, 2025iyi paketleme güzel ürün
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Victor5 out of 5 starsAmazing book and the code is very readable
Reviewed in Mexico on May 19, 2024The perfect choice to land your next programming job, all the text, diagrams and code printed are readable and very easy to follow.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Justin5 out of 5 starsChanged the way I looked at a lot of problems
Reviewed in Canada on October 3, 2016This 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.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again














