mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-11 22:46:39 +08:00
Update sorting/cycle_sort.cpp
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
This commit is contained in:
@@ -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... ";
|
||||
|
||||
Reference in New Issue
Block a user