Skip to content

This repository contains Python solutions to LeetCode problems, organized in a clean, easy-to-navigate format. Each entry includes a short description, problem link, and direct access to the solution file. Perfect for learning, practicing, and revising coding interview questions efficiently.

License

Notifications You must be signed in to change notification settings

im-vishu/Leetcode-Python-solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

🧠 LeetCode Python Solutions

A curated collection of Python solutions to LeetCode problems, organized by difficulty and topic for easy navigation and learning. Each problem includes a brief description, solution file, and tutorials for deeper understanding.


📌 Navigation

🧠 Workflow📘 Resources🎯 Study Plan📊 Progress🧑‍💻 Contribute📜 Code of Conduct


🚀 Features

  • ✅ Organized by Problem ID & Difficulty (Easy / Medium / Hard)
  • 📂 Solutions in separate Python files with docstrings
  • 🧪 Optional pytest tests in tests/
  • ⚙️ Scripts in tools/ for automation (generate README, new problem template)
  • 🔗 Tutorials and explanations for selected problems
  • 📊 Progress tracker for problems solved

📈 Progress Tracker

Difficulty Solved Total Progress
Easy 5 50 🟩🟩🟩⬜⬜
Medium 5 50 🟩🟩⬜⬜⬜
Hard 2 25 🟩⬜⬜⬜⬜

📚 Learning Resources


🎯 Study Plan

Week Focus Problems
1 Arrays & Strings 10 Easy, 5 Medium
2 Linked List, Stack, Queue 10 Easy, 5 Medium
3 Trees & Recursion 10 Medium
4 DP & Graphs 5 Medium, 3 Hard

🧩 Problem Table

Use tools/generate_readme_table.py to auto-populate this table.


🏗️ Folder Structure

LeetCode-Python-Solutions/
├── README.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── requirements.txt
├── solutions/
│   ├── easy/
│   ├── medium/
│   ├── hard/
│   └── topics/
├── tests/
├── docs/
│   ├── workflow.md
│   ├── resources.md
│   ├── study_plan.md
│   ├── progress.md
│   └── tutorials/
├── tools/
│   ├── generate_readme_table.py
│   └── new_problem_template.py
├── .github/workflows/python-test.yml
└── assets/diagrams/

⚙️ Quick Start

# Clone the repo
git clone https://github.com/im-vishu/LeetCode-Python-Solutions.git
cd LeetCode-Python-Solutions

# Install dependencies
pip install -r requirements.txt

# Run a specific solution
python solutions/easy/0001_two_sum.py

# Run all tests
pytest -v

📝 Contributing

Please read CONTRIBUTING.md and follow the Code of Conduct.


🌟 Acknowledgments

  • Inspired by NeetCode, Striver’s SDE Sheet, and GeeksforGeeks
  • Community contributions from GitHub users

🔗 Author

@im-vishu | LinkedIn

About

This repository contains Python solutions to LeetCode problems, organized in a clean, easy-to-navigate format. Each entry includes a short description, problem link, and direct access to the solution file. Perfect for learning, practicing, and revising coding interview questions efficiently.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages