๐ Code answers of the 6th edition of Cracking the Coding Interview: 189 Programming Questions & Solutions.
Repository hosted through GitHub pages
- Python 3.7+
Usage of virtualenv is recommended for package library / runtime isolation.
Run the code for any of the questions under the src.questions
Python module from the root directory.
python3 -m src.questions.X.Y.Z
being:
X
: Interview question category.Y
: Chapter name.Z
: Question name.
Or run all the available questions all together.
python3 -m src
Every question has to be a class based on the abstract class called Question
(found at src.helper.question
).
The code for every question has to start like this:
from src.helper.question import Question
class QuestionClass(Question):
def solve(self):
# To implement
pass
if __name__ == '__main__':
with QuestionClass(QuestionClass.__name__) as question_class:
question_class.solve()
MIT ยฉ Cracking the Coding Interview