cracking-the-coding-interview

Cracking the Coding Interview

HitCount Python application GitHub stars GitHub forks GitHub contributors GitHub license

πŸ“— Code answers of the 6th edition of Cracking the Coding Interview: 189 Programming Questions & Solutions.

Repository hosted through GitHub pages

Requirements

  1. Python 3.7+

Recommendations

Usage of virtualenv is recommended for package library / runtime isolation.

Usage

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:

Or run all the available questions all together.

python3 -m src

Implement new questions

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()

Authors

License

MIT Β© Cracking the Coding Interview