Welcome to LeetCode Medium Problem Solutions in Python!
This repository contains efficient and well-documented solutions to selected Medium-level problems from LeetCode, all written in Python. It aims to serve as a helpful guide for developers and students preparing for coding interviews and competitive programming contests.
- ✅ Clear and optimized solutions for medium-level LeetCode problems.
- 🧠 Covers key data structures and algorithms such as:
- Arrays & Strings
- HashMaps & Sets
- Binary Trees & Graphs
- Dynamic Programming
- Sliding Window
- Two Pointers
- 💬 Code is commented for better understanding.
- 📁 Each problem is stored in a separate
.py
file for ease of access.
LeetCode-Medium-Problem-Solutions-in-Python/
│
├── 3\_Longest\_Substring\_Without\_Repeating\_Characters.py
├── 5\_Longest\_Palindromic\_Substring.py
├── 46\_Permutations.py
├── 102\_Binary\_Tree\_Level\_Order\_Traversal.py
├── 120\_Triangle.py
├── ...
└── README.md
git clone https://github.com/udityamerit/LeetCode-Medium-Problem-Solutions-in-Python.git
cd LeetCode-Medium-Problem-Solutions-in-Python
Each file can be run independently using Python 3:
python3 3_Longest_Substring_Without_Repeating_Characters.py
Make sure the required inputs are provided (if prompted or hardcoded).
Contributions are welcome! If you'd like to add more problems or improve the solutions:
- Fork the repository.
- Create a new branch.
- Add your changes.
- Submit a pull request.
Uditya Narayan Tiwari 📍 Portfolio 🔗 LinkedIn 💻 GitHub
If you find this repository useful, please consider giving it a ⭐ to support the work!
This project is licensed under the MIT License.