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:
poetrywill 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 bycdintowc/pyccwcand then dopoetry run python pyccwc/main.py ../text.txt(inspectpyproject.tomlfile 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
cargoto build and test as usual.