This repository is a collection of completed code challenges, katas, whiteboarding question practice, and other assorted problems from a variety of places.
A good general place to start is this list of 14 techniques that are good to know for interviews.
- The code challenge solutions use JavaScript, Java, Python, and Solidity
- The JavaScript tests are written with Facebook's Jest for unit testing, while Python uses its built-in unittest. Java and Solidity tests are coming soon.
-
Fork or clone this repository to your local machine
-
For JavaScript challenges:
- Open your terminal and install Jest using
yarn global add jest
- Navigate to the parent directory and run Jest by entering the command
jest --watch
- Select which method of testing in
Jest
you want to use via the command line prompts
- Open your terminal and install Jest using
-
For Python challenges:
- Open your terminal and install dependencies via
poetry install
- Start a shell environment by running either
poetry shell
- Run tests locally by identifying the subdirectory you want to run and using the command
PYTHONPATH=$(pwd) poetry run python ./src/path/to/the/test_file.py
to run it
- Open your terminal and install dependencies via
-
Modify some of the code in a test file to watch the magic happen
- Thanks to Frank Faustino for inspiring me to create my own completed code challenges repository.