A curated collection of C++ solutions for problems from LeetCode.
This repository is maintained by omroy07 — built for learning, interview preparation, and competitive programming practice.
All solutions are written with a focus on clarity, efficiency, and best coding practices (C++14/17).
This repository contains a growing collection of solved LeetCode problems.
Each problem is placed in its own folder with the problem number and title (e.g. 0001-two-sum).
Solutions are designed to be easy to understand, commented, and interview-ready.
Highlights:
- 💻 All solutions in C++
- 🧩 Well-structured folders by problem number & title
- 🚀 Ideal for coding interviews, DSA practice, and competitive programming
- 🎯 Updated regularly as more problems are solved
Before running the solutions, make sure you have:
- A C++ compiler (supporting C++14/17 or higher)
- Optional: Any IDE or code editor like VS Code, CLion, or Code::Blocks
- Basic understanding of compiling and executing C++ programs
Study the solutions to understand various approaches, algorithms, and time–space complexity trade-offs.
Each solution demonstrates clear logic and clean C++ implementation for better understanding.
Practice solving problems without viewing the solution first.
After finishing, compare your approach with the one here to identify optimization opportunities and better patterns.
Quickly browse through categorized problems — such as Arrays, Dynamic Programming, Graphs, Trees, etc.
Use it to recap algorithms, logic patterns, and problem-solving techniques efficiently.
Add your own optimized or alternative solutions.
Ensure:
- The folder name follows the format
000X-problem-name - The code is well-commented and readable
- You include explanations if possible (optional but helpful)