Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 2.8 KB

CONTRIBUTING.md

File metadata and controls

47 lines (36 loc) · 2.8 KB

How to contribute

You can contribute to this repo in any of the following ways

✏️ Adding new problems and solutions

  • Selecting a problem from a website like Hackerrank, Leetcode etc

    • Add it to the respective folder (eg: Leetcode; if it doesn't exist, create it)
    • Make a folder with the name as name of the problem given
    • Should have 2 files: readme.md and solution
    • Add the link to the problem in readme.md file
    • Add your solution in any language in the solution file
    • Solutions must be properly indented and explained with comments
  • Creating a new problem

    • Add it to misc folder
    • Make a folder with name as name of the problem
    • Should have 2 files: readme.md and solution
    • In readme.md, provide detailed explanation of problem statement and constraints with at least 2 testcases and it's explanation
    • Add your solution in any language in the solution file
    • Solutions must be properly indented and explained with comments

💡 Adding solutions to existing problems

  • You can contribute your solutions to any existing problem
  • Add it as a new file in the format solution_number eg: (solution2) in the respective problem folder
  • Solutions must be properly indented and explained with comments

📚 Documentation Contributions

  • You can add useful resources related to CP/DSA.
  • You can improve the readme and contributing documentation

❗ Important Note: Read this before you send a Pull Request

The idea behind this repo is to help you to get comfortable with the process of solving CP/DSA problems from any platform of your choice, thereby improving your problem solving skills.
Please read the following points carefully

  • The readme file should only contain either the link to the problem OR the problem itself. DON'T add anything related to the solution in the readme file.
  • In your solution, ADD THE LOGIC USED FOR SOLVING IN THE FORM OF COMMENTS EITHER ALONG WITH THE CODE or AT THE BEGINNING OF THE CODE. (if possible include the Time and Space complexities also)
  • More emphasis is given on understanding the logic used to get the solution rather than the code itself. Hence simply copy-pasting code is not encouraged.
  • Any solution you add must be your own and not plagiarized in any manner.
  • Folder & file names must NOT contain any invalid characters, leading digits or trailing whitespaces.

As long as your PR adheres with all the points mentioned above, you're good to go ✨.

📝 For a guide on how to make a Pull request, refer this

Happy contributing!! 😃

Any PR that doesn't adhere with the contributing guidelines will be marked as invalid and closed.