This repository contains my personal solutions to various LeetCode problems, implemented in C++.
- Structured Solutions: Each file corresponds to a specific LeetCode problem using proper naming conventions.
- Optimized Code: Focused on clean, readable, and efficient C++ implementations.
- Wide Coverage: Includes a variety of data structures, algorithms, BFS, DFS, and more.
Each solution is named using the following format:
<problem_number>_<Problem_Name>.cpp
994_Rotting_Oranges.cpp
This represents LeetCode Problem 994 – Rotting Oranges.
- A working C++ compiler (e.g.,
GCC,Clang) - Code editor or IDE (e.g., VS Code, CLion, Code::Blocks)
-
Clone the repository:
git clone https://github.com/abdullahforecasts/MyLeetCode.git cd MyLeetCode -
Compile and run a solution:
g++ 994_Rotting_Oranges.cpp -o oranges ./oranges
📝 Note: Some problems may use
cin/coutinput/output or custom inputs. Make sure to check comments in the code for how to test.
If you'd like to contribute:
- Fork the repository
- Create a new branch with your solution
- Commit and push changes
- Open a pull request
Your suggestions and alternate approaches are welcome!
This project is licensed under the MIT License — use the code freely for learning or practice.
For queries or feedback: 📧 [email protected]
Or visit my GitHub Profile
Happy coding! 💻✨