Solutions for Cracking the Coding Interview 6th Edition by Gayle Laakmann McDowell.
Crowdsourcing solutions for every widely used programming language. Contributions welcome.
Apply those fundamentals to crack the coding interview. The 6th edition of Cracking the Coding Interview updates the Sth edition with 70% more content additiona: l questions, revise solutionsd ne,w chapte introductionsr mor, e algorithm strategies hint, s for all problems. 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. 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. 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.
Cloning
Solutions in Java are contained directly in this repo and are the same solutions foundin the book. Solutions in other programming languages are contributed by the community and each havetheir own dedicated repos which are referenced from this repo as git submodules. What this means for cloning:
If you want to make a local clone of solutions in all languages, you should use the
--recursive
option:If you're only interested in the Java solutions:
If you originally cloned without
--recursive
, and then later decide you want the git submodules too, run:
Contributing
Work Flow
- Fork the appropriate repo for your language to your GitHub user. (see Where to submit pull requests)
- Write quality code and lint if applicable.
- Add tests if applicable.
- Open a pull request and provide a descriptive comment for what you did.
Where to submit pull requests
Pull requests pertaining to Java solutions should be submitted to the main CtCI-6th-Edition repo. Please submit pull requests for all other languages to the appropriate language-specific repo.
Adding a new Language
Solutions in other languages are welcome too and should follow this workflow:
- Create the new repo under your own GitHub user account and start contributing solutions. The repo name should follow this naming convention:
CtCI-6th-Edition-<language>
. - Open an issue on the CtCI-6th-Edition repo to request that your solution repo be promoted to join the careercup GitHub organization and referenced from the main repo as a git submodule.
- If your request is approved, navigate to your repo's settings page and select the 'Transfer Ownership' option, and specify 'careercup' as the new owner.
Cracking The Coding Interview 6th Edition
This repository will contain Python solutions to the problems in the sixthedition ofCracking the Coding Interviewby Gayle Lackmann McDowell.Note that many other solutionsare available from CareerCup.
Problems 4 and 8 from chapter 7 are particularly noteworthy.Problem 4 allows you to park cars, and problem 8 provides a simple Othello bot.You can play against the Othello bot with python 08-othello.py play
.Good luck!
Cracking The Coding Interview 6th Edition Github Download
Some of these solutions may be asymptotically slower than the officialsolutions. Please report any errors you find! At least one (8.11 coins2
)is asymptotically faster than the solution given in the book.