Hello, and thank you for considering a contribution to Interview Questions Solved! Whether you're here to suggest a solution, fix an error, or add test cases, your assistance is valued and appreciated.
- Fork the Repository: This allows you to make changes without affecting the main project.
- Clone Your Forked Repository:
git clone https://github.com/YOUR-USERNAME/interview-questions-solved.git
- Create a New Branch: For a new feature, a bug fix, or any other contribution:
git checkout -b branch-name
- Choosing a Problem: It's always a good idea to start with an unassigned open issue. If you have a new problem in mind that isn't listed, open a new issue for discussion and tag it under the "question" label. Make sure to provide the exact question and the source of the same.
- Solution Structure: Ensure your solution follows the structure outlined in the main README. This includes a detailed README for each solution, production-ready code, test cases, and a live demo link or instructions.
- Coding Style: Maintain a consistent coding style. Include inline comments explaining your logic, especially in complex sections.
- Testing: Before submitting your solution, test your code against various scenarios to ensure its robustness.
- Commit Messages: Write clear and concise commit messages describing the changes you've made.
- Update from Upstream: Ensure your local repository is up to date with the main project to avoid merge conflicts:
git pull upstream main
- Push to Your Fork: After making your changes, push them to your forked repository.
- Create a Pull Request (PR): Navigate to the 'Pull Requests' tab of the main project and click on 'New Pull Request'. Choose the branch you wish to pull from and submit your PR.
- Describe Your Changes: Provide a brief summary of what you've done. If your PR closes any open issues, include
Closes #issueNumber
in your description. - Review: One of the maintainers will review your PR. They might suggest changes, improvements, or provide feedback. Engage in the discussion and make necessary updates.
If you're unsure about anything, feel free to ask. Open an issue or reach out to one of the maintainers. We value all contributors, regardless of their experience level.
Thank you for investing your time and effort into this project. Your contribution will help countless individuals in their interview preparations! 💼🚀