A collection of coding exercises to help you improve your programming skills
-
_exercises: This directory contains the exercise texts in Markdown format.
-
Languages: Each programming language has its own directory. Within each, there are subdirectories named after the sections corresponding to the exercises. In each language directory, there is a
U1-libraries
directory, where commonly used functions are stored to keep the code clean, and aU2-experiments
directory, where code not part of the exercises but used to test the language's features is stored. Additionally, there are directories namedU3
,U4
, and so on, containing exercises specific to each language.
To execute a Bash script, navigate to the directory containing the script and use the following command:
bash script-name.sh
To execute a C++ script, navigate to the directory containing the script and compile it with g++
(or any other C++ compiler) using the following command:
g++ script-name.cpp -o script-compiled
Then run it with the next command:
./script-name
To execute a Go script, navigate to the directory containing the script and compile it with go
using the following command:
go build -o script-compiled script-name.cpp
Then run it with the next command:
./script-name
To execute a Python script, navigate to the directory containing the script and use the following command:
python3 script-name.py
To execute a Rust script, navigate to the directory containing the script and compile it with rust
using the following command:
rustc script-name.rs -o script-compiled
Then run it with the next command:
./script-name
If you want to add new exercises or improve existing ones, follow these steps:
- Open an issue to discuss the changes.
- Fork this repository.
- Create a new branch for your contribution:
git checkout -b your-branch-name
. - Make your changes. To add new exercises, edit the Markdown files in the
_exercises
directory. - Commit your changes, for example:
git commit -m 'feat(exercises): added S05[E14] 'pharmacy-value' exercise.'
. - Push your changes to your forked repository:
git push origin your-branch-name
. - Open a Pull Request in this repository and reference the original issue.
This project is licensed under the GPL-3.0 License. See the LICENSE file for more details.