https://github.com/nwthomas/code-challenges
Completed code challenges
https://github.com/nwthomas/code-challenges
Last synced: over 1 year ago
JSON representation
Completed code challenges
- Host: GitHub
- URL: https://github.com/nwthomas/code-challenges
- Owner: nwthomas
- License: mit
- Created: 2019-01-21T19:27:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-20T05:44:26.000Z (over 1 year ago)
- Last Synced: 2025-03-26T21:35:27.295Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 1.03 MB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CODE CHALLENGES 👨🏻💻
## PURPOSE
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](https://hackernoon.com/14-patterns-to-ace-any-coding-interview-question-c5bb3357f6ed).
## TABLE OF CONTENTS
- [Codewars](src/codewars/) 
- [8 kyu](src/codewars/8-kyu/8-kyu.md)
- [7 kyu](src/codewars/7-kyu/7-kyu.md)
- [6 kyu](src/codewars/6-kyu/6-kyu.md)
- [5 kyu](src/codewars/5-kyu/5-kyu.md)
- [4 kyu](src/codewars/4-kyu/4-kyu.md)
- [Daily Coding Problem](src/daily-coding-problem)
- [Easy](src/daily-coding-problem/easy)
- [Medium](src/daily-coding-problem/medium)
- [Hard](src/daily-coding-problem/hard)
- [HackerRank](src/hacker-rank/)
- [Easy](src/hacker-rank/easy/easy.md)
- [Medium](src/hacker-rank/medium/medium.md)
- [Hard](src/hacker-rank/hard/hard.md)
- [Interview Cake](src/interview-cake/)
- [Lambda School](src/lambda-school/)
- [Week 1](src/lambda-school/week-1/week-1.md)
- [Week 2](src/lambda-school/week-2/week-2.md)
- [Week 3](src/lambda-school/week-3/week-3.md)
- [Week 4](src/lambda-school/week-4/week-4.md)
- Week 5 _(Build Week - No Code Challenges)_
- [Week 6](src/lambda-school/week-6/week-6.md)
- [Week 7](src/lambda-school/week-7/week-7.md)
- [Week 8](src/lambda-school/week-8/week-8.md)
- [Week 9](src/lambda-school/week-9/week-9.md)
- Week 10 _(Build Week - No Code Challenges)_
- [Week 11](src/lambda-school/week-11/week-11.md)
- [Week 12](src/lambda-school/week-12/week-12.md)
- [Week 13](src/lambda-school/week-13/week-13.md)
- [Week 14](src/lambda-school/week-14/week-14.md)
- Week 15 _(Build Week - No Code Challenges)_
- [LeetCode](src/leetcode/leetcode.md)
- [Easy](src/leetcode/easy/easy.md)
- [Medium](src/leetcode/medium/medium.md)
- [Hard](src/leetcode/hard/hard.md)
- [Miscellaneous Code Challenges](src/miscellaneous-code-challenges/misc-code-challenges.md)
- [Pramp Interviews](src/pramp/pramp.md)
## BUILT WITH
- The code challenge solutions use [JavaScript](https://www.ecma-international.org/ecma-262/6.0/), [Java](https://www.java.com/en/), [Python](https://www.python.org/), and [Solidity](https://solidity.readthedocs.io/en/v0.4.24/index.html)
- The JavaScript tests are written with Facebook's [Jest](https://jestjs.io/en/) for unit testing, while Python uses its built-in [unittest](https://docs.python.org/3.7/library/unittest.html#assert-methods). Java and Solidity tests are coming soon.
## GETTING STARTED
1. Fork or clone this repository to your local machine
2. 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
3. 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
4. Modify some of the code in a test file to watch the magic happen
## AUTHORS
- [**Nathan Thomas**](https://github.com/nwthomas)
## ACKNOWLEDGEMENTS
- Thanks to [Frank Faustino](https://github.com/frankfaustino) for inspiring me to create my own completed code challenges repository.