LeetCode-Problems-Solutions

Hacktoberfest-2022🔥


Feel free to use this project to make your first contribution to an open-source project on GitHub. Practice making your first pull request to a public repository before doing the real thing!

This repository is open to all members of the GitHub community. Any member can contribute to this project!

Guidelines

  1. Contribute a LeetCode Problem.

  2. Always create an issue before making a Pull Request.

  3. Make a Pull Request only after the issue has been assigned to you by the owner. Otherwise, your PR will be closed automatically.

  4. Write the issue number while creating a Pull Request.

    Example: Write #30 if the issue number of that problem is 30.

  5. The Program should be executable, with 0 errors and proper documentation.

  6. Codes are only allowed in C++, Java and Python.

  7. Do not add a code if it exists already.

  8. Explain your code with the help of comments.

  9. Writing the author's name and the date modified is a must.

    Example:

  10. Filename should follow the order ProblemNumber_ProblemName.extension If there are 2 or more than 2 words than the first letter of each word must be capital.

    Example: 1_TwoSum.cpp

  11. Don't spam it will be rejected immediately.

YOU MAY USE THESE LINKS TO FORMAT YOUR CODE

C++ FORMATTER : https://codebeautify.org/cpp-formatter-beautifier

JAVA FORMATTER : https://codebeautify.org/javaviewer

PYTHON FORMATTER : https://codebeautify.org/python-formatter-beautifier

Steps For Contribution

  1. Star this repository.

  2. Fork this repository.

  3. Clone the forked repository.

git clone https://github.com/<your-github-username>/LeetCode-Problems-Solutions
  1. Navigate to the project directory.
cd LeetCode-Problems-Solutions
  1. Create a new branch.
git checkout -b <your_branch_name>
  1. Make changes.

  2. Stage your changes and commit

git add -A

git commit -m "<your_commit_message>"
  1. Push your local commits to the remote repo.
git push -u origin <your_branch_name>
  1. Create a Pull Request.

  2. Congratulations! 🎉 you've made your contribution.