Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.29 KB

File metadata and controls

35 lines (23 loc) · 1.29 KB

CONTRIBUTING.md

Before contributing, check whether the algorithm has already been implemented or not.

Setting up the repo locally

  1. Fork the repo in your account.

  2. Clone it into your machine.

    git clone https://github.com/<your_username>/algorithms_with_git.git
    
  3. Create a branch for your algorithm.

    git checkout -b <branch_name>
    

Adding a brand new algorithm

  1. Make a folder for your algorithm. The folder name should be descriptive. Use underscores instead of spaces.
  2. Put your program in that folder. Keep the program name as similar as possible to the folder name.
  3. Add documentation for your program. You can use the DOCUMENTATION_TEMPLATE for this. Algorithms without a basic documentation (description, input/output format, sample input/output) will not be accepted.
  4. Update the List of Algorithms in README with your algorithm.
  5. Commit and push the changes, then submit a Pull Request.

Implementing an algorithm in another language

  1. Put your algorithm in the corresponding algorithm folder.
  2. Update the corresponding README.
  3. Commit and push the changes, then submit a Pull Request.

A sample algorithm Maximum of Array has already been implemented for you.