Before contributing, check whether the algorithm has already been implemented or not. All algorithms must be implemented in C++.
-
Fork the repo in your account.
-
Clone it into your machine.
git clone https://github.com/<your_username>/algorithms_with_git.git
-
Create a branch for your algorithm.
git checkout -b <branch_name>
- Make a folder for your algorithm. The folder name should be descriptive. Use underscores instead of spaces.
- Put your program in that folder. Keep the program name as similar as possible to the folder name.
- 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.
- Update the List of Algorithms in README with your algorithm.
- Commit and push the changes, then submit a Pull Request.
- Put your algorithm in the corresponding algorithm folder.
- Update the corresponding README.
- Commit and push the changes, then submit a Pull Request.