Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.63 KB

CONTRIBUTING.md

File metadata and controls

21 lines (16 loc) · 1.63 KB

File Placement:

For example, maths algorithm should go in Math section.

Make sure your file is saved in your programming language's file extension (.cpp recommended).

If a title of a problem already exists and you have another solution, upload your solution within the same subfolder.

Similarly, if the topic is not related to Math, then put it in its closest related folder (e.g. Sorting topics should go under the "Sorting" folder.

Pre-requisites:

Install Git: Are you a first time user and just beginning with Open-Source projects? No problem! Here's how you can install Git on your computer

After you are done installing Git on your computer:
  1. Fork this repository on Github.
  2. Clone it onto your computer by opening terminal and running the command $ git clone https ://github.com/{your username}/Competitive-Programming-Algorithms.git
  3. Use the actual name of the repository to change into that directory (eg. $ cd repository) and create and switch to a new branch by the following command: $ git checkout -b new-branch
  4. After modifying existing files or adding new files to the project, add them locally to your repository using $ git add -A command where A is the file
  5. Add a short message about what you contributed for with the git commit command. For eg. $ git commit -m "Fixed documentation typos"
  6. Now use the command $ git push --set-upstream origin new-branch to push the changes to the current branch of your forked repository
  7. Now you can create a Pull Request with the chosen branch as new-branch