2021-01-17 22:01:39 +00:00
|
|
|
/*#############################################################################
|
|
|
|
## Author: Shaun Reed ##
|
2022-03-31 20:01:08 +00:00
|
|
|
## Legal: All Content (c) 2022 Shaun Reed, all rights reserved ##
|
2021-01-17 22:01:39 +00:00
|
|
|
## About: An example implementation of selection sort using a custom library ##
|
|
|
|
## ##
|
|
|
|
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
|
|
|
|
###############################################################################
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LIB_SELECT_H
|
|
|
|
#define LIB_SELECT_H
|
|
|
|
|
|
|
|
#define ARRAY_LENGTH 10
|
|
|
|
|
2021-05-23 14:57:19 +00:00
|
|
|
#include <vector>
|
2021-01-17 22:01:39 +00:00
|
|
|
|
|
|
|
/** SelectionSort
|
|
|
|
* Sorts an array of integers in ascending order
|
|
|
|
* @param arr The array to sort
|
|
|
|
*/
|
2021-05-23 14:57:19 +00:00
|
|
|
void SelectionSort(std::vector<int> &arr);
|
2021-01-17 22:01:39 +00:00
|
|
|
|
|
|
|
#endif // LIB_SELECT_H
|