Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 2.58 KB

Contributing.md

File metadata and controls

57 lines (46 loc) · 2.58 KB

CONTRIBUTING GUIDELINES

We are happy to welcome all the contributions from anyone willing to improve this project.
Thank you for helping out and remember, no contribution is too small.

  • Star the repo.
  • Add only the problems which have been a part of Contests by grouping them into a folder.
  • Name the folder in a valid manner. Ex : Biweekly 50 and add problems in that folder.
  • Code should be written in C++.
  • Use curly braces from the next line.
  • Explain the code with proper approach along with its Time and Space complexity.
  • Write the file name properly Ex : Longest_common_subsequence.

MAIN README

  • Write the Contest name in the first column.
  • Add the link to the folder containing contest problems in the second column.

FOLDER README

  • Inside the folder, edit readme by having links to the problem asked.
  • If any problem is Important in perspective of an interview, mark it as 💡.

👻 Now, Follow these steps :-

Step 1 : Create an issue

Step 2 : Fork the Project

  • Fork this Repository. This will create a Local Copy of this Repository on your Github Profile. Keep a reference to the original project in upstream remote.
  • $ git clone https://github.com/<your-username>/LeetCode-Contests
  • $ cd LeetCode-Contests
  • $ git remote add upstream https://github.com/utkarsh006/LeetCode-Contests

Step 3 : Branch

  • Create a new branch. Use its name to identify the issue your addressing.
  • It will create a new branch with name Branch_Name and switch to that branch.
  • $ git checkout -b branch_name

Step 4 : Work on the issue assigned

  • Work on the issue(s) assigned to you.
  • Add all the files/folders needed.
  • After you've made changes or made your contribution to the project add changes to the branch you've just created by:
  • To add all new files to branch Branch_Name
  • $ git add .

Step 5 : Commit

  • This message get associated with all files you have changed
  • $ git commit -m "message"

Step 6 : Work Remotely

  • To push your work to your remote repository
  • $ git push -u origin Branch_Name

Step 7 : Pull Request

  • Go to your repository in browser and click on compare and pull requests. Then add a title and description to your pull request that explains your contribution.

  • Yahoo ! Your Pull Request has been submitted and will be reviewed by the moderators and merged.🥳


Heya! Don't Worry 😇

It always takes time to understand and learn. So, do not worry at all. We know you have got this!💪