Add example for insertion sort

This commit is contained in:
2021-05-25 00:00:44 -04:00
parent 82effe5203
commit 8f70278ac6
5 changed files with 113 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
/*#############################################################################
## Author: Shaun Reed ##
## Legal: All Content (c) 2021 Shaun Reed, all rights reserved ##
## About: An example implementation of insertion sort using a custom library ##
## ##
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
###############################################################################
*/
#ifndef LIB_INSERTION_HPP
#define LIB_INSERTION_HPP
#include <vector>
#define ARRAY_LENGTH 10
void InsertionSort(std::vector<int> &array);
#endif // LIB_INSERTION_HPP