A curated collection of Python solutions to common algorithm and data structure problems — designed to enhance problem-solving skills and prepare for technical interviews. Most exercises are inspired by popular platforms like LeetCode.
UsefulPythonExercises/
│
├── LeetCodeExamples/ # Python solutions to LeetCode problems
│ ├── 1.Two_Sum.py
│ ├── 125. Valid Palindrome.py
│ ├── ...
│
├── requirements.txt # Placeholder for dependencies (optional)
├── LICENSE
└── README.md
- Clean and readable Python code
- Covers a range of topics including:
- Arrays and Strings
- Linked Lists
- Hashing and Sets
- Two Pointers
- Greedy Algorithms
- Well-commented for educational purposes
- Ideal for interview prep and practice
- Python 3.x
No special libraries are needed to run the solutions. Just clone the repo and open any .py
file with your preferred Python interpreter or IDE.
git clone https://github.com/omidcodes/UsefulPythonExercises.git
pip install -r requirements.txt
cd UsefulPythonExercises/LeetCodeExamples
python 1.Two_Sum.py
Feel free to fork the repository and submit pull requests with new problems, alternative solutions, or performance improvements!
This project is licensed under the MIT License — see the LICENSE file for details.
Happy coding! 🎯