Here I host personal solutions to coding challenges from https://codingchallenges.fyi
Each solution is in its own {name}/{language-identifier}cc{name}
folder (e.g. the folder ./wc/pywc
host the solution for a wc
tool written in python) and I host solutions in both Python and Rust. Keep in mind the following while going through the implemented solutions:
- Python:
poetry
will be used to manage dependencies and environments, so to execute any of the implementaions and tests, it is more convenient to do it throughpoetry
; for example, you can run the script for Write Your Own wc Tool bycd
intowc/pyccwc
and then dopoetry run python pyccwc/main.py ../text.txt
(inspectpyproject.toml
file to find command line tool). Likewise, you can run the tests for such project withpoetry run pytest tests/
inside the same folder. There will be a script named as the folder for you to use as well. - Rust: Use
cargo
to build and test as usual.
The table below helps to navigate through the solutions that have been implemented.
Challenge | Python version notes | Rust version notes |
---|---|---|
Write Your Own wc Tool | link | link |
Write Your Own JSON Parser | link | ... |
... | ... | ... |