Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 2.4 KB

File metadata and controls

73 lines (49 loc) · 2.4 KB

Contributing to Code Chef Solutions

Thank you for your interest in contributing to the Code Chef Solutions repository! This project aims to provide a comprehensive collection of solutions to various problems from CodeChef, enhancing learning and problem-solving skills in competitive programming.

How to Contribute

  1. Fork the Repository

    • Click the "Fork" button at the top-right corner of the repository page to create your own copy.
  2. Clone Your Fork

    • Clone your forked repository to your local machine:
      git clone https://github.com/aviraw/CodeChef.git
      cd CodeChef
  3. Create a New Branch

    • Create a new branch for your contribution:
      git checkout -b feature/add-solution
  4. Add Your Solution

    • Add your solution file to the appropriate directory based on the problem type or language.
    • Ensure that your code is well-commented and follows good coding practices.
  5. Update README.md

    • Add your problem name and GitHub username to the README.md file under the "Answers and Problems" section, formatted as follows:
      | [Number] | [Problem Name] | [Your GitHub Username] |
      
  6. Commit Your Changes

    • Once you've made your changes, commit them with a meaningful message:
      git add .
      git commit -m "Add solution to [Problem Name]"
  7. Push Your Changes

    • Push your branch to your forked repository:
      git push origin feature/add-solution
  8. Create a Pull Request

    • Go to the original repository on GitHub.
    • Click the "New Pull Request" button.
    • Select your branch and provide a detailed description of your changes.

Guidelines

  • Ensure that all code submissions are original and not plagiarized from other sources.
  • Follow proper naming conventions for files (e.g., ProblemName.cpp, ProblemName.py).
  • Test your code thoroughly before submitting.
  • No spammy or low-quality code will be accepted.

Code of Conduct

We expect all contributors to adhere to a standard of respect and inclusivity. Please be kind and considerate in all interactions within this community.

Questions?

If you have any questions or need assistance, feel free to open an issue in the repository or reach out directly.

Thank you for contributing to Code Chef Solutions! Your efforts help others learn and grow in their programming journey.