https://github.com/thefcraft/cp-algorithms
A personal repository for competitive programming solutions, including CSES, Project Euler, and HackerRank problems, with custom debugging utilities and scripts.
https://github.com/thefcraft/cp-algorithms
algorithms cpp data-structures
Last synced: 12 months ago
JSON representation
A personal repository for competitive programming solutions, including CSES, Project Euler, and HackerRank problems, with custom debugging utilities and scripts.
- Host: GitHub
- URL: https://github.com/thefcraft/cp-algorithms
- Owner: thefcraft
- Created: 2025-01-20T09:58:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-25T18:03:49.000Z (about 1 year ago)
- Last Synced: 2025-03-25T19:22:28.859Z (about 1 year ago)
- Topics: algorithms, cpp, data-structures
- Language: C++
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# CP Algorithms Repository
This is my personal repository for competitive programming solutions and algorithmic problem-solving. It includes solutions for various platforms such as CSES, Project Euler, and HackerRank, along with useful scripts and utilities for streamlined development.
## ๐ Features
- Organized problem solutions categorized by platform.
- Preconfigured `tfcpp.json` for easy execution.
- Utility scripts for efficient testing and debugging.
- Custom C++ format utilities in the `fmt` directory.
## ๐ Running a Solution
To run a specific problem solution, first modify `tfcpp.json` and then simply execute:
```sh
./run.bat
```
This will:
1. Compile the `main.cpp` file.
2. Execute the solution with necessary debugging utilities enabled.
if io_files flag is True then Make sure your input is placed in `.in.txt`, and the output will be written to `.out.txt`.
else make sure to add the input in the files debug test cases
## ๐ Repository Structure
```
CP-Algorithms/
โ .gitignore
โ readme.md
โ run.bat
โ tfcpp.json
โโโโcses/ # CSES problem set solutions
โโโโfmt/ # Custom C++ format utilities
โโโโhackerrank/ # HackerRank contest solutions
โโโโprojecteuler/ # Project Euler solutions
โโโโscripts/ # Helper scripts for execution
```
## ๐ Dependencies
Ensure you have the following installed:
- A C++ (`g++`) compiler (GCC, Clang, MSVC, etc.)
- `fmt-display-cpp`: [Fmt Display C++](https://github.com/thefcraft/fmt-display-cpp)
## ๐ Contribution
This is a personal repository, but if you find something useful or have suggestions, feel free to open an issue or submit a pull request.
## ๐ License
This project is for personal and educational use. Feel free to reference and modify the code for your own learning purposes!