Add example for bubble sort
This commit is contained in:
19
cpp/algorithms/sorting/bubble/lib-bubble.hpp
Normal file
19
cpp/algorithms/sorting/bubble/lib-bubble.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 bubble sort using a custom library ##
|
||||
## ##
|
||||
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
|
||||
###############################################################################
|
||||
*/
|
||||
|
||||
#ifndef LIB_BUBBLE_HPP
|
||||
#define LIB_BUBBLE_HPP
|
||||
|
||||
#include <vector>
|
||||
|
||||
#define ARRAY_LENGTH 10
|
||||
|
||||
void BubbleSort(std::vector<int> &array);
|
||||
|
||||
#endif // LIB_BUBBLE_HPP
|
||||
Reference in New Issue
Block a user