Merge Sort v0.3.3
Loading...
Searching...
No Matches
merge_sorter.hpp
Go to the documentation of this file.
1
10#ifndef MERGE_SORTER_HPP
11#define MERGE_SORTER_HPP
12
13#include <vector>
14
18private:
20 MergeSorter() = delete;
21
23 MergeSorter(const MergeSorter&) = delete;
24
26 MergeSorter& operator=(const MergeSorter&) = delete;
27
38 static std::vector<int> merge(std::vector<int> arr, int left, int mid, int right);
39
49 static std::vector<int> mergeSort(std::vector<int>& arr, int left, int right);
50
51public:
59 static std::vector<int> sortArray(std::vector<int>& arr);
60};
61
62#endif /* MERGE_SORTER_HPP */
Klasa MergeSorter implementująca algorytm merge sort. Klasa umożliwia sortowanie tablic liczb całkowi...
Definition merge_sorter.hpp:17
static std::vector< int > sortArray(std::vector< int > &arr)
Sortuje całą tablicę liczb całkowitych w porządku rosnącym.
Definition merge_sorter.cpp:79