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

https://github.com/swapnilsachan03/codeforces

Solutions to all the problems that I solve on Codeforces.
https://github.com/swapnilsachan03/codeforces

algorithms codeforces data-structures

Last synced: 12 months ago
JSON representation

Solutions to all the problems that I solve on Codeforces.

Awesome Lists containing this project

README

          

# Swapnil's Codeforces Solutions

This repository contains my solutions to various Codeforces problems that I have solved. The solutions are mostly implemented in C++.

## 📂 Repository Structure

- `/` - Contains all my solutions categorized by problem ID.
- `cph/` - Includes input-output test cases for cph.
- `.gitignore` - Specifies intentionally untracked files to ignore.
- `README.md` - This file.

## 🚀 How to Use

1. **Clone the repository**
```sh
git clone https://github.com/swapnilsachan03/codeforces.git
cd codeforces
```

2. **Read a problem solution**
```sh
A_Buttons # Example: Problem - 1858A - Buttons
```

3. **Compile and Run (C++ Example)**
```sh
g++ -std=c++17 -O2 -Wall A_Buttons.cpp -o A_Buttons.out
./A_Buttons.out < testcases/A_Buttons_input.txt > output.txt
```

*__or__* you can install *__cph extension in VS Code__*, the repository contains all the testcase files for every problem which cph needs to run the code.

## 📝 Must-Try Codeforces Problems
Here is a list of problems that I believe everyone should try to improve their problem-solving skills:

### **Rated A/B (Beginner Level)**
- 4A - Watermelon
- 71A - Way Too Long Words
- 231A - Team
- 282A - Bit++
- 112A - Petya and Strings

### **Rated C/D (Intermediate Level)**
- 327A - Flipping Game
- 514C - Watto and Mechanism
- 580C - Kefa and Park (Graph)
- 1102C - Doors Breaking and Repairing
- 118D - Caesar's Legions (DP)

### **Rated D+ (Advanced Level)**
- 466C - Number of Ways (Prefix Sum)
- 519D - A and B and Interesting Substrings
- 580D - Kefa and Dishes (Bitmask DP)
- 609E - Minimum spanning tree for each edge
- 1140G - Two Different (Graph Theory)

## ⭐ Contributions
This is a personal repository, but if you find a bug or a better approach to a problem, feel free to open an issue or submit a pull request!

## 📜 License
This repository is for educational purposes. Feel free to use the solutions for learning, but do not use them for cheating in contests.

Happy Coding! 🚀