The CSES Problem Set is a renowned collection of competitive programming problems covering a wide range of topics from basic loops to advanced graph theory and segment trees.
This repository is aimed at:
- 🚀 Helping programmers practice algorithmic thinking.
- 📈 Tracking workbook-style progress (e.g., 105 + 6 + 289 / 400).
- 💡 Providing clean, commented C++ solutions for learning and reference.
Solutions are grouped by topic and named by problem title or ID. Each folder contains the solutions to CSES problems grouped by topic:
- 1. Introductory Problems
- 2. Sorting and Searching
- 3. Dynamic Programming
- 4. Graph Algorithms
- 5. Range Queries
- 6. Tree Algorithms
- 7. Mathematics
- 8. String Algorithms
- 9. Geometry
- 10. Advanced Techniques
- 11. Sliding Window Problems
- 12. Interactive Problems
- 13. Bitwise Operations
- 14. Construction Problems
- 15. Advanced Graph Problems
- 16. Counting Problems
- 17. Additional Problems I
- 18. Additional Problems II
🧠 This repository is actively being updated to cover all workbook problems across categories.
We aim to complete the following topics:
- Introductory Problems
- Sorting and Searching
- Dynamic Programming
- Graph Algorithms
- Tree Algorithms
- Range Queries
- Mathematics
- String Algorithms
- Geometry
- Advanced Techniques
- Sliding Window Problems
- Interactive Problems
- Bitwise Operations
- Construction Problems
- Advanced Graph Problems
- Counting Problems
- Additional Problems I
- Additional Problems II
- All solutions are written in C++17 or later
- Focus on:
- Clean code 🧼
- Efficient algorithms ⚡
- Competitive programming practices ⌛
You can use this repository to:
- 📖 Learn how to solve standard problems step-by-step
- 🧪 Benchmark your own solutions
- 💼 Prepare for contests (e.g., ICPC, Codeforces, AtCoder, etc.)
- 📚 Study topic-wise for interviews or academic coursework
Pull requests and issue reports are welcome! Feel free to:
- Suggest alternative solutions
- Submit improved versions
- Report bugs or typos
This repository is licensed under the MIT License, so feel free to use and adapt it for personal or educational purposes.
- Huge thanks to CSES.fi and contributors like Antti Laaksonen
- Workbook format inspired by Isun57, ilovesabnaj, and the broader CP community
Happy Coding! 💻✨
“Practice is the best teacher.”