This repository contains my solutions to various LeetCode problems, all written in Python / Python 3.
- Each file is named after the LeetCode problem number.
- No folders — everything lives in the root directory for simplicity.
- All files are plain
.py
scripts.
Example:
1072.py
→ LeetCode 10721346.py
→ LeetCode 1346
- ~50 problems solved and counting
- All solutions tested with Python 3
- Topics include:
- Arrays & Hashing
- Strings
- Linked Lists
- Binary Trees
- Recursion & Backtracking
- Dynamic Programming
- Bit Manipulation
- Math and Greedy
Clone the repo:
git clone https://github.com/your-username/leetcode-python-solutions.git
cd leetcode-python-solutions
Make sure you have Python 3 installed.
Filename | LeetCode Problem |
---|---|
1072.py |
Flip Columns for Maximum Number of Equal Rows |
1346.py |
Check If N and Its Double Exist |
1475.py |
Final Prices With a Special Discount in a Shop |
1760.py |
Minimum Limit of Balls in a Bag |
You can easily find more problems by number at leetcode.com/problemset/all.