Added algorithms library

This commit is contained in:
2019-11-28 21:42:07 +01:00
parent dff20e8bac
commit ad9960635b
9 changed files with 138 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef CODING_ALGORITHMS_QUICKSORT_H
#define CODING_ALGORITHMS_QUICKSORT_H
#include <vector>
#include <iterator>
namespace c0ding::algorithm {
class quick {
public:
template<class T>
static void sort(std::vector<T>& list);
private:
template<class T>
static void _quick(const typename std::vector<T>::iterator& left, const typename std::vector<T>::iterator& right);
};
}
#endif //CODING_ALGORITHMS_QUICKSORT_H