This repository contains Python solutions for the chapter exercises found in "Grokking the Coding Interview". Each solution is accompanied by its respective tests to ensure accuracy and efficiency.
To get started with these solutions, clone this repository using:
git clone https://github.com/nafisk/algorithm.git
Each folder in the repository corresponds to a specific chapter from "Grokking the Coding Interview". To run a solution, navigate to the respective chapter folder and execute the Python file. For example: cd chapter1 python solution1.py
To run tests for a solution, use the following command:
python -m unittest test_solution1.py
Contributions to improve the solutions or tests are welcome. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit them (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Note: This repository is an educational resource and is not affiliated with the "Grokking the Coding Interview" book or its publishers.