Skip to content

Explore a collection of well-documented LeetCode solutions and problem statements. Join our community of problem solvers, sharpen your coding skills, and contribute to this open-source project!

Notifications You must be signed in to change notification settings

mohit-kota/Leetcode-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions Repository

Welcome to the LeetCode Solutions Repository! This open-source project is dedicated to providing solutions, explanations, and problem statements for various LeetCode questions. We encourage developers and problem solvers to contribute and collaborate.

Contribution Guidelines

Adding Solutions

  1. Fork this repository to your GitHub account.
  2. Clone your forked repository locally: git clone https://github.com/your-username/Leetcode-Solutions.git
  3. Create a new branch for your changes: git checkout -b feature/your-solution
  4. Solve a LeetCode problem and add your solution to the respective directory (e.g., problems/leetcode-problem-name/). Please adhere to the following naming convention:
    • The solution file: leetcode-question-number-question-name.cpp (e.g., 1234-example-problem.cpp).
    • The Notes.md file: Notes.md (for describing your thinking approach).
    • The Readme.md file: Readme.md (for the problem statement).
  5. Add comments and explanations to your code for clarity.
  6. Commit your changes: git commit -m "Add solution for LeetCode problem-name"
  7. Push the changes to your fork: git push origin feature/your-solution
  8. Create a pull request to merge your changes into the main repository.

Using LeetHub Extension (Optional)

For a streamlined contribution process, you can use the LeetHub extension, which automatically follows the code of conduct mentioned above. It will help you create pull requests with the correct file structure.

Improving Documentation

If you find existing solutions that can be improved or made more understandable:

  1. Follow steps 1 and 2 from the "Adding Solutions" section.
  2. Make improvements to the code or documentation.
  3. Commit your changes with a clear message.
  4. Push the changes to your fork.
  5. Create a pull request to merge your improvements.

Participating in Discussions

Feel free to participate in discussions, provide feedback on existing solutions, and help other contributors.

Code of Conduct

Please adhere to our Code of Conduct to ensure a welcoming and inclusive environment for all contributors. The code of conduct is as follows:

  • File name of the pull request should be: leetcode-question-number-question-name
  • Each pull request should contain three files:
    1. The solution of the problem with the proper extension (e.g., leetcode-question-number-question-name.cpp).
    2. Notes.md file, which describes your thinking approach and a rough sketch of your solution.
    3. Readme.md, which is the problem statement of the question.

To achieve this easily, you can use the LeetHub extension, which will add your submitted solution to your forked GitHub repository and follow the above code of conduct automatically.

Get Started

  1. Fork this repository.
  2. Clone your forked repository.
  3. Follow the contribution guidelines above.
  4. Join our community and start contributing to improve this resource!

Thank you for being a part of this collaborative effort to build a valuable resource for problem solvers!

About

Explore a collection of well-documented LeetCode solutions and problem statements. Join our community of problem solvers, sharpen your coding skills, and contribute to this open-source project!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages