Implementation of well-known (and some rare) algorithms, mostly in C++.
Check out the Wiki for a complete list of contents.
Add atleast 1 algorithm to the repo every week.
- Fork the repo ๐ด (and don't forget to star!)
- Add your implementation of an algorithm that is not already in the repo (preferably in C++, but others would do just fine)
- Submit a pull request (click here to learn how)
Just create a new issue and I'll handle it from there ๐
If you are contributing C++ code to this repo, make sure to read the C++ coding guidelines.
Since many of the C++ programs in this repo use new features of C++11 (like range-based for-loops and more), you will need to use the -std=c++11
flag if you are compiling using the CLI. If you use an IDE, make sure to set the standard as C++11 in your compiler settings.
Also make sure there are no warnings during compilation by setting the -Wall
flag and checking that nothing gets reported, if using the CLI. If using an IDE, make sure to check the "Enable all warnings" option for your compiler.
If you are in the Sorting directory, and want to compile the code for merge sort, run the following command:
g++ -std=c++11 -Wall -o MergeSort.out MergeSort.cpp
Instead of g++, you may use other compilers like gcc, clang, clang++, MinGW (Windows) or Visual C++ (Windows). Just make sure that they support C++11 features.