An open API service indexing awesome lists of open source software.

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.

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!