From 2ae8b5d34a97fb69eb61f5618cff7b39bd9f6d97 Mon Sep 17 00:00:00 2001 From: Hao Chen Date: Sun, 18 Oct 2015 10:46:30 +0800 Subject: [PATCH] fix #68 --- algorithms/cpp/rotateArray/rotateArray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {