diff --git a/algorithms/cpp/rotateArray/rotateArray.cpp b/algorithms/cpp/rotateArray/rotateArray.cpp index 562b283..5d18e42 100644 --- a/algorithms/cpp/rotateArray/rotateArray.cpp +++ b/algorithms/cpp/rotateArray/rotateArray.cpp @@ -88,7 +88,7 @@ void rotate(int nums[], int n, int k) { return rotate1(nums, n, k); } cout << "[2] "; - return rotate1(nums, n, k); + return rotate2(nums, n, k); } void printArray(int nums[], int n) {