Welcome to my LeetCode Solutions Repository! This repository is a collection of solutions to coding problems on LeetCode. It serves as a personal resource for tracking progress, refining problem-solving skills, and sharing approaches to various challenges.
The repository is organized as follows:
LeetCode/
├── Problems/
│ ├── 0001_Two_Sum/
│ │ ├── solution.py
│ │ ├── README.md
│ ├── 0002_Add_Two_Numbers/
│ │ ├── solution.py
│ │ ├── README.md
│ ├── ...
└── README.md
- Problems/: Each LeetCode problem is organized into its own folder with a name in the format
<problem-number>_<problem-name>. Each folder contains:solution.py: The Python solution for the problem.README.md: A markdown file containing the problem description, solution approach, and complexity analysis.
git clone https://github.com/msnabiel/LeetCode.git
cd LeetCode
- Navigate to the
Problems/folder and locate the solution for any problem using its LeetCode number and name.
- Use Python to execute any solution file. Example: python Problems/0001_Two_Sum/solution.py
- Organized by Problem: Each problem is self-contained in its own folder.
- Detailed Documentation: Each solution includes a README with problem descriptions.
- Continuously Updated: Regularly updated with new problems and approaches.
This repository spans a wide range of topics, including:
- Arrays
- Strings
- Dynamic Programming
- Graphs
- Trees
- Backtracking
- Sliding Window
- Two Pointers
- Binary Search
- Greedy Algorithms
- Bit Manipulation
- Divide and Conquer
- Recursion
- Heaps
- Stacks and Queues
- Tries
- Union Find
Contributions are welcome! If you'd like to add a new solution, improve an existing one, or suggest enhancements, follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name - Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature/your-feature-name - Submit a pull request.
Hi there! I'm Nabiel, a passionate programmer and engineering student with a knack for solving problems. This repository is part of my coding journey, and I'm excited to share it with the community.
- GitHub: msnabiel
- LinkedIn: linkedin.com/in/msnabiel
This repository is licensed under the MIT License. You are free to use the code for personal or educational purposes.
Happy Coding! 😊