A collection of Python solutions to Leetcode problems. This repository is organized for easy reference and continuous learning, covering a variety of algorithms and data structures.
- Solutions are grouped by problem type or number
- Each file includes:
- Problem description (optional)
- Approach explanation
- Clean, commented Python code
- Arrays & Strings
- Hash Maps & Sets
- Linked Lists
- Trees & Graphs
- Recursion & Backtracking
- Dynamic Programming
- Greedy & Sliding Window
- Sorting & Searching
- And more...
-
Clone the repo:
git clone https://github.com/your-username/leetcode-python.git cd leetcode-python -
Browse by folder or search by problem name or number.
-
Run a file:
python 001_two_sum.py
Contributions are welcome! Feel free to fork the repo, add your solutions, and create a pull request.
Happy coding! π