We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5222201 commit 2ae8b5dCopy full SHA for 2ae8b5d
algorithms/cpp/rotateArray/rotateArray.cpp
@@ -88,7 +88,7 @@ void rotate(int nums[], int n, int k) {
88
return rotate1(nums, n, k);
89
}
90
cout << "[2] ";
91
- return rotate1(nums, n, k);
+ return rotate2(nums, n, k);
92
93
94
void printArray(int nums[], int n) {
0 commit comments