{"id":20262007,"url":"https://github.com/druxorey/code-practices","last_synced_at":"2026-04-09T16:03:15.208Z","repository":{"id":250254833,"uuid":"833933553","full_name":"druxorey/code-practices","owner":"druxorey","description":"A collection of coding exercises to help you improve your programming skills","archived":false,"fork":false,"pushed_at":"2024-10-24T05:34:23.000Z","size":420,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-24T16:14:58.220Z","etag":null,"topics":["bash","cpp","golang","python","rust"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/druxorey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-26T04:29:36.000Z","updated_at":"2024-10-24T05:34:27.000Z","dependencies_parsed_at":"2024-10-25T23:58:44.159Z","dependency_job_id":"e87fe6ad-25dd-48b0-8bff-871429f0742e","html_url":"https://github.com/druxorey/code-practices","commit_stats":null,"previous_names":["druxorey/code-practices"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druxorey%2Fcode-practices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druxorey%2Fcode-practices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druxorey%2Fcode-practices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druxorey%2Fcode-practices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/druxorey","download_url":"https://codeload.github.com/druxorey/code-practices/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241731748,"owners_count":20010781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","cpp","golang","python","rust"],"created_at":"2024-11-14T11:28:03.142Z","updated_at":"2026-04-09T16:03:15.198Z","avatar_url":"https://github.com/druxorey.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003eCode Practices\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"#repository-structure\"\u003e\u003cimg src=\"https://img.shields.io/badge/structure-BD93F9?style=for-the-badge\"\u003e\u003c/a\u003e\n\u003ca href=\"#how-to-execute-scripts\"\u003e\u003cimg src=\"https://img.shields.io/badge/how%20to%20run-BD93F9?style=for-the-badge\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eA collection of coding exercises to help you improve your programming skills\u003c/p\u003e\n\n## Repository Structure\n\n- **_exercises**: This directory contains the exercise texts in Markdown format.\n\n\t- [S01-elemental-actions](./_exercises/S01-EN-elemental-actions.md)\n\t- [S02-conditional-control-structures](./_exercises/S02-EN-conditional-control-structures.md)\n\t- [S03-iterative-control-structures](./_exercises/S03-EN-iterative-control-structures.md)\n\t- [S04-functions](./_exercises/S04-EN-functions.md)\n\t- [S05-arrays-and-matrices](./_exercises/S05-EN-arrays-and-matrices.md)\n\t- [S06-structs-and-files](./_exercises/S06-EN-structs-and-files.md)\n\t- [S07-object-oriented-programming](./_exercises/S07-EN-object-oriented-programming.md)\n\t- [S08-recursion](./_exercises/S08-EN-recursion.md)\n\t- [S09-backtraking](./_exercises/S09-EN-backtraking.md)\n\t- [S10-lists](./_exercises/S10-EN-lists.md)\n\t- [S11-queues-dequeues-stacks](./_exercises/S11-EN-queues-dequeues-stacks.md)\n\t- [S12-multilinked-structures](./_exercises/S12-EN-multilinked-structures.md)\n\t- [S13-trees-and-heaps](./_exercises/S13-EN-trees-and-heaps.md)\n\n- **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 a `U2-experiments` directory, where code not part of the exercises but used to test the language's features is stored. Additionally, there are directories named `U3`, `U4`, and so on, containing exercises specific to each language.\n\n## How To Execute Scripts\n\n### Bash\n\nTo execute a Bash script, navigate to the directory containing the script and use the following command:\n\n    bash script-name.sh\n\n### C++\n\nTo 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:\n\n    g++ script-name.cpp -o script-compiled\n\nThen run it with the next command:\n\n    ./script-name\n\nIf you want to compile the test cases, use the following command:\n\n    g++ -DENABLE_TEST script-name.cpp -o script-compiled\n\nThen run it with the next command:\n\n\t./script-compiled\n\n### Golang\n\nTo execute a Go script, navigate to the directory containing the script and compile it with `go` using the following command:\n\n    go build -o script-compiled script-name.go\n\nThen run it with the next command:\n\n    ./script-name\n\n### Python\n\nTo execute a Python script, navigate to the directory containing the script and use the following command:\n\n    python3 script-name.py\n\n### Rust\n\nTo execute a Rust script, navigate to the directory containing the script and compile it with `rust` using the following command:\n\n    rustc script-name.rs -o script-compiled\n\nThen run it with the next command:\n\n    ./script-name\n\n### Java\n\nTo execute a Java program, navigate to the directory containing the `.java` file and compile it using the following command:\n\n    javac ScriptName.java\n\nThen run it with the next command:\n\n    java ScriptName\n\n## Contribute\n\nIf you want to add new exercises or improve existing ones, follow these steps:\n\n1. Open an issue to discuss the changes.\n2. Fork this repository.\n3. Create a new branch for your contribution: `git checkout -b your-branch-name`.\n4. Make your changes. To add new exercises, edit the Markdown files in the `_exercises` directory.\n5. Commit your changes, for example: `git commit -m 'feat(exercises): added S05[E14] 'pharmacy-value' exercise.'`.\n6. Push your changes to your forked repository: `git push origin your-branch-name`.\n7. Open a Pull Request in this repository and reference the original issue.\n\n## License\n\nThis project is licensed under the GPL-3.0 License. See the [LICENSE](LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruxorey%2Fcode-practices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdruxorey%2Fcode-practices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruxorey%2Fcode-practices/lists"}