A comprehensive collection of problem solutions from GeeksforGeeks — neatly organized by difficulty level and problem type.
Each problem folder contains:
- README.md — Problem statement, example, and explanation
- .cpp file — Clean and optimized C++ solution
GeeksForGeeks-Solution/
│
├── Difficulty: Basic/
│ ├── Alternative Sorting/
│ │ ├── README.md
│ │ └── alternative-sorting.cpp
│ ├── Array Search/
│ ├── ...
│
├── Difficulty: Easy/
│ ├── ...
│
├── Difficulty: Medium/
│ ├── ...
│
├── Difficulty: Hard/
│ ├── ...
│
└── Difficulty: School/
└── Swap The Numbers/
Each difficulty level folder contains multiple problem sets, each with detailed documentation and solution files.
This repository is a personal archive of coding problems I have solved on GeeksforGeeks, focusing on:
- Problem-solving logic
- Code optimization
- Clean, well-documented solutions
The goal is to help learners and developers understand the approach and implementation of common programming problems in C++.
- C++ (100%) — clean, modular, and efficient implementations.
- Array & String Problems
- Linked List & Tree Problems
- Searching & Sorting Algorithms
- Mathematical & Bit Manipulation Problems
- Recursion & Backtracking
- Miscellaneous Coding Challenges
| Difficulty | Description |
|---|---|
| 🟢 Basic | Simple logic-based problems for beginners |
| 🔵 Easy | Straightforward problems with slight logical complexity |
| 🟡 Medium | Intermediate-level problems requiring algorithmic thinking |
| 🔴 Hard | Advanced problems involving optimized solutions and edge-case handling |
- Choose a difficulty level folder (e.g.,
Difficulty: Basic/). - Open any problem folder.
- Read the README.md to understand the problem.
- Check the
.cppfile for the full solution and explanation.
Mayank Kumar
👨💻 @01mayankk
💬 Passionate about Algorithms, AI, and Clean Code
Contributions are welcome!
If you'd like to improve documentation or add solutions in other languages, feel free to:
- Fork the repository
- Create a new branch
- Commit your changes
- Open a Pull Request
- Among Top 10% participants on GeeksforGeeks
- Continuously solving problems to strengthen DSA and logic-building skills
This repository is open-source under the MIT License — feel free to use and learn from the code with proper attribution.