Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.24 KB

instructions.md

File metadata and controls

35 lines (23 loc) · 1.24 KB

instructions.md

Before contributing, check whether the algorithm has already been implemented or not. All algorithms must be implemented in C++.

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.Algorithms without a basic documentation (description, input/output format, sample input/output) will not be accepted. See disjoint_set_union.cpp for example.
  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.