{"id":26903482,"url":"https://github.com/farhangamary/cpp-coding-challenges","last_synced_at":"2025-04-01T10:28:35.315Z","repository":{"id":284643026,"uuid":"954396454","full_name":"farhangamary/cpp-coding-challenges","owner":"farhangamary","description":"A collection of C++ challenges covering both algorithmic problems and language-specific concepts. Explore solutions to real-world problems, C++ standard features, and best practices. Contributions are highly welcomed!","archived":false,"fork":false,"pushed_at":"2025-03-26T22:55:40.000Z","size":5,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T23:32:17.726Z","etag":null,"topics":["algorithms","cmake","cplusplus","cpp","graphs","msvc","preprocessor","stl","string","trees"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farhangamary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-03-25T02:46:35.000Z","updated_at":"2025-03-26T22:55:43.000Z","dependencies_parsed_at":"2025-03-26T23:42:24.378Z","dependency_job_id":null,"html_url":"https://github.com/farhangamary/cpp-coding-challenges","commit_stats":null,"previous_names":["farhangamary/cpp-coding-challenges"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhangamary%2Fcpp-coding-challenges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhangamary%2Fcpp-coding-challenges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhangamary%2Fcpp-coding-challenges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhangamary%2Fcpp-coding-challenges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farhangamary","download_url":"https://codeload.github.com/farhangamary/cpp-coding-challenges/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246623007,"owners_count":20807242,"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":["algorithms","cmake","cplusplus","cpp","graphs","msvc","preprocessor","stl","string","trees"],"created_at":"2025-04-01T10:28:34.708Z","updated_at":"2025-04-01T10:28:35.302Z","avatar_url":"https://github.com/farhangamary.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cpp_challenges\n\nThis is a collection of C++ coding challenges, and it will be expanded over time. Currently, it includes one completed challenge, with more challenges to be added in the future.\n\n## Contributing Challenges\nIf you have a C++ coding challenge you'd like to contribute, please create a new issue in this repository! The process is simple:\nOpen a new issue and describe the challenge in detail, including:\n - A clear problem statement\n - Input/output specifications\n - Example test cases\n\nOnce the issue is created, we'll work together to implement solutions and add tests to ensure correctness.\n\nThank you for contributing!\n\n## Project Structure\n\nThe project is organized into categories.\nEach challenge is located in its respective category. Each category contains the solution as well as a corresponding test in the test directory.\n\n## Requirements\n\n- CMake 3.8 or higher\n- gcc/g++ for linux\n- msvc(cl.exe) - the compiler for windows os.\n- vcpkg - for package management - for windows os.\n- googletest\n\n## Setup\n\n### Windows Setup (MSVC)\n\n1. Clone the repository\n2. Install `vcpkg` and integrate it with Visual Studio (see [vcpkg setup](https://github.com/microsoft/vcpkg/blob/master/docs/users/integration.md)).\n3. Install dependencies (GoogleTest):\n    ```bash\n    vcpkg install gtest\n    ```\n4. Open the project in MS Visual Studio.\n5. Build the project and start tests.\n\n### Linux Setup\n1. Clone the repository\n2. Install dependencies:\n    ```bash\n    sudo apt-get install cmake g++ libgtest-dev\n    ```\n3. Run CMake: create a build directory and run::\n    ```bash\n    cmake -B build/ -S .\n    ```\n4. Build the project: go to the build directory and run:\n    ```bash\n    make --build build/\n    ```\n\n## Running Tests\nYou can run the tests using CTest or directly from Visual Studio.\n- To run tests from the terminal, go into the build directory and run:\n    ```bash\n    ctest --output-on-failure\n    ```\n- Or use the Visual Studio test runner.\n- You can also run the generated executable binaries of the tests.\n\n## License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarhangamary%2Fcpp-coding-challenges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarhangamary%2Fcpp-coding-challenges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarhangamary%2Fcpp-coding-challenges/lists"}