Skip to content

omidcodes/UsefulPythonExercises

Repository files navigation

Useful Python Exercises

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.

📁 Project Structure

UsefulPythonExercises/
│
├── LeetCodeExamples/          # Python solutions to LeetCode problems
│   ├── 1.Two_Sum.py
│   ├── 125. Valid Palindrome.py
│   ├── ...
│
├── requirements.txt           # Placeholder for dependencies (optional)
├── LICENSE
└── README.md

🚀 Features

  • 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

🛠 Technologies Used

  • Python 3.x

✅ Getting Started

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

📚 Contribution

Feel free to fork the repository and submit pull requests with new problems, alternative solutions, or performance improvements!

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.


Happy coding! 🎯

About

There are some useful python examples inside this repository.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages