There implementations are for learning purposes. If you want to contribute more efficient solutions feel free to open an issue and commit your solution.
You can look for Algorithms to implement at: LeetCode Algorithms
To contribute make sure the Algorithm isn't commited yet! Make sure to add the number of the Issue in your PR.
Please make sure your file is in the LeetCode
-Folder and Named like this:
0001_TwoSum.py
-> 4-digit Number of the LeetCode Issue, Underscore, LeetCodeName
Only Pull Requests joined with an Issue and matching the naming-conventions (See Folders and Files) will be merged! If there is no Issue joined in the PR your PR will be labeld as spam and closed. If your code don't passes the Check on LeetCode.com your PR will be labeld as "invalid" and the Issue stays open for the next PR!
- Fork this repository (Click the Form button, top right of this page)
- Clone your fork down to your local machine
git clone https://github.com/your-username/pythonalgorithms.git
- Comment to the Issue you want to work on - so I can assign you to it OR create a new Issue from a LeetCode Problem that is not implemented yet
- Create a branch for a new feature
git checkout -b feature/branch-name
- Or if its a bugfix to a file
git checkout -b bugfix/branch-name
- Make your changes (choose from the Tasks above!)
- Commit and Push
git add .
git commit -m 'commit message'
git push origin branch-name
- Create a New Pull Request from your forked repository ( Click the 'New Pull Request' Button located at the top of your repo)
- Wait for your PR review and merge approval!
- Star this repository if you had fun!
- Ones you are assigned to
- Your PR has to link the Issue
- Your Solution must be correct - you can check ist on LeetCode (submit) if it works on different test-cases
Thank You!