Update sorting/cycle_sort.cpp

Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
This commit is contained in:
Swastika Gupta
2021-07-06 09:13:14 +05:30
committed by GitHub
parent 38ce79e93b
commit 33fb608901

View File

@@ -83,6 +83,7 @@ std::vector<T> cycleSort(const std::vector<T> &in_arr) {
* @returns void
*/
static void test() {
// Test 1
// [4, 3, 2, 1] return [1, 2, 3, 4]
std::vector<int> array1 = {4, 3, 2, 1};
std::cout << "Test 1... ";