Skip to content

This repository contains solutions to various LeetCode problems implemented in Python. The goal is to provide clean, efficient, and well-documented solutions to help others understand different problem-solving approaches. Each solution is optimized for performance and follows best practices in coding

License

Notifications You must be signed in to change notification settings

Sheesikram/Shees_Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions in Python

Welcome to the LeetCode Solutions in Python repository! This collection contains solutions to various LeetCode problems, written in Python. Each solution is designed to be clean, efficient, and easy to understand. The repository is regularly updated with new solutions as more problems are solved.

Features

  • Comprehensive Coverage: Solutions to problems from a wide range of categories, including:

    • Arrays
    • Strings
    • Dynamic Programming
    • Trees & Graphs
    • Linked Lists
    • Backtracking and more.
  • Optimized Code: Focus on writing Pythonic and optimized code with explanations and multiple approaches (where applicable).

  • Well-Documented: Each solution contains comments and explanations to clarify the approach, logic, and time/space complexity.

  • Continuous Updates: This repository will be updated frequently as new problems are solved or improved solutions are discovered.

How to Use

You can browse the repository and explore the solutions folder to find a solution for a particular problem. Each file is named after the problem, with LeetCode's problem number for easy reference.

Example:

If you want to look up the solution for "Two Sum" (LeetCode Problem #1):

1_two_sum.py

Prerequisites

To run the Python solutions locally, you will need Python installed on your system. You can download it from here.

Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/leetcode-python-solutions.git
    cd leetcode-python-solutions
  2. Install any dependencies if required (though most solutions will only use Python's standard library).

  3. Run the Python files directly using:

    python problem_filename.py

Contributing

Feel free to contribute by submitting pull requests with:

  • New solutions to unsolved problems
  • Optimizations to existing solutions
  • Additional approaches to the same problem

Please ensure the code is clean and well-documented, with explanations of your approach.

License

This repository is licensed under the MIT License. You are free to use, modify, and distribute the code, but please provide appropriate credit.

Contact

For any queries or suggestions, feel free to open an issue or reach out via email.

About

This repository contains solutions to various LeetCode problems implemented in Python. The goal is to provide clean, efficient, and well-documented solutions to help others understand different problem-solving approaches. Each solution is optimized for performance and follows best practices in coding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published