Add example for radix sort
This commit is contained in:
19
cpp/algorithms/sorting/radix/lib-counting.hpp
Normal file
19
cpp/algorithms/sorting/radix/lib-counting.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*#############################################################################
|
||||
## Author: Shaun Reed ##
|
||||
## Legal: All Content (c) 2021 Shaun Reed, all rights reserved ##
|
||||
## About: An example implementation of counting sort using a custom library ##
|
||||
## + In support of a radix sort implementation ##
|
||||
## ##
|
||||
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
|
||||
###############################################################################
|
||||
*/
|
||||
|
||||
#ifndef RADIX_LIB_COUNT_HPP
|
||||
#define RADIX_LIB_COUNT_HPP
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
void CountingSort(std::vector<int> &array, int placeValue);
|
||||
|
||||
#endif // RADIX_LIB_COUNT_HPP
|
||||
Reference in New Issue
Block a user