This repository contains my solutions to the CSES Problem Set, implemented in C++ and accompanied by clear explanations and algorithmic insights.
It’s designed to help learners and competitive programmers understand the logic behind each problem — not just the code.
Each solution file includes:
- 🔗 Problem link
- 🧠 Key observations
- 🧭 Core idea / approach
- 💻 Clean, tested C++ code
Solutions are organized into folders based on topic.
- Introductory Problems
- Sorting and Searching
- Dynamic Programming
- Graph Algorithms
- Tree Algorithms
- Mathematics
- Range Queries
- String Algorithms
- Geometry
- Sliding Window Problems
- Bitwise Operations
(New problems and categories are added regularly)
- Language: C++
- Editor: VS Code
- Online Judge: cses.fi
- Clone the repo:
git clone https://github.com/shashi9170/CSES.git cd CSES