diff --git a/Rotate array b/Rotate array new file mode 100644 index 0000000..18ec6f0 --- /dev/null +++ b/Rotate array @@ -0,0 +1,11 @@ +void rotate(vector& nums, int k) +{ + vector temp(nums.size()); + for(int i=0;i