AlbertSuarez / cracking-the-coding-interview

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

Home Page:https://asuarez.dev/cracking-the-coding-interview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  • X: Interview question category.
  • Y: Chapter name.
  • Z: Question name.

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

About

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

https://asuarez.dev/cracking-the-coding-interview

License:MIT License


Languages

Language:Python 100.0%