Thank you for considering contributing to this repository! Your contributions help make this project better and more comprehensive for everyone. Follow the guidelines below to ensure a smooth contribution process.
- Ensure you have Git installed on your system.
- Familiarize yourself with the structure of this repository.
- Make sure you have a GitHub account. If not, you can create one here.
Click the Fork button at the top-right corner of this repository to create a copy of it in your GitHub account.
Clone your forked repository to your local machine using the following command:
git clone https://github.com/<your-username>/LeetCode-Python-Solutions.git
Create a new branch for your contribution. Use a descriptive name for your branch:
git checkout -b add-solution-<problem-id>
- Navigate to the appropriate folder in the
Solution/
directory. - Add your solution file (e.g.,
problem-id.py
) and update thereadme.md
file in the corresponding folder. - Ensure your code is well-documented and follows the repository's coding style.
Commit your changes with a meaningful commit message:
git add .
git commit -m "Add solution for problem <problem-id>: <problem-title>"
Push your changes to your forked repository:
git push origin add-solution-<problem-id>
- Go to the original repository on GitHub.
- Click the Pull Requests tab.
- Click New Pull Request.
- Select your branch and submit the pull request with a detailed description of your changes.
- Follow the Repository Structure: Ensure your contributions are added to the correct folder.
- Write Clean Code: Use meaningful variable names, add comments, and follow Python best practices.
- Update Documentation: If you add a new solution, update the corresponding
readme.md
file with the problem description, examples, and your solution. - Test Your Code: Ensure your code runs without errors and passes all test cases.
- Be Respectful: Follow the Code of Conduct.
We are committed to fostering a welcoming and inclusive environment. By participating in this project, you agree to abide by our Code of Conduct.
If you have any questions or need assistance, feel free to:
- Open an issue in the repository.
- Reach out to the maintainers via GitHub.
Thank you for contributing! Together, we can make this repository a valuable resource for the coding community.