Welcome to my repository of solutions for the CSES Problem Set.
The problems are organized by their respective categories as listed on CSES:
├── Sorting and Searching
├── Dynamic Programming
├── Graph Algorithms
├── Range Queries
├── Tree Algorithms
├── Mathematics
├── String Algorithms
└── Other
Within each folder, you'll find the problem's solution file named as per the problem title .
-
Clone the Repository:
git clone https://github.com/saumik-talukdar/CSES
-
Navigate to a Category Folder: Each problem is grouped under its category folder (e.g.,
Sorting and Searching
,Dynamic Programming
, etc.). -
View Solutions: The solutions are written in C++ and use a standard competitive programming template. You can open the solution files directly to view or copy the code.
-
Run the Code: If you want to run the code locally, use any C++ compiler, such as
g++
. Example:g++ -std=c++17 sorting_and_searching/restaurant_customers.cpp -o restaurant_customers ./restaurant_customers
Feel free to contribute to this repository if you'd like to add more solutions or improve existing ones. Follow these steps:
- Fork the repository.
- Create a new branch for your contribution:
git checkout -b new-feature
- Make your changes and commit:
git commit -m "Added solution for X problem"
- Push to your forked repository:
git push origin new-feature
- Create a Pull Request.
I am currently working through the problems, and the repository is not yet complete. Stay tuned for more solutions as I work my way through the entire set!
Feel free to adjust it as needed for your repository!