The CSES Problem set is a collection of algorithmic programming problems created by the Competitive Programmer's Guild at the University of Helsinki. The set is designed to help programmers of all levels improve their algorithmic programming skills, with problems ranging from simple introductory problems to advanced problems that require complex algorithms.
The problems in the set cover a wide range of topics, including dynamic programming, graph algorithms, number theory, and more. Each problem has a unique task number and is accompanied by a set of input and output specifications, as well as time and memory limits for the solution.
The CSES Problem Set is a great resource for anyone looking to improve their algorithmic programming skills, whether you are a beginner or an experienced programmer. It provides a platform to practice and learn new algorithms and techniques, and to improve your problem-solving skills. The problem set is available online and is free to use, with no registration required.
This repository contains my solutions to the problems on the CSES website. All the solutions are written in C++ and are organized by task number.
To use these solutions, simply download or clone the repository to your local machine:
git clone https://github.com/your_username/cses-solutions.git
Then, navigate to the task directory and compile the C++ file:
cd cses-solutions
g++ -o {task_number} {task_number}.cpp
Finally, run the executable file:
./{task_number}
If you have a better solution or found a bug in one of my solutions, feel free to contribute by creating a pull request. I would appreciate any feedback or suggestions to improve the code.
Thanks to the CSES team for providing such a great platform to practice and improve programming skills.
Problem Name | Task Number | C++ Solution | Python Solution | Java Solution |
---|---|---|---|---|
Weird Algorithm | 1068 | cpp | python | java |
Missing Number | 1083 | cpp | python | java |
Repetitions | 1069 | cpp | python | java |
Increasing Array | 1094 | cpp | python | java |
Permutations | 1070 | cpp | python | java |
Number Spiral | 1071 | cpp | python | java |
Two Knights | 1072 | cpp | python | java |
Two Sets | 1092 | cpp | python | java |
Bit Strings | 1617 | cpp | python | java |
Trailing Zeros | 1618 | cpp | python | java |
Coin Piles | 1754 | cpp | python | java |