Skip to content

Commit 4207431

Browse files
committed
Rotate Array by k positions
1 parent 97a2098 commit 4207431

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Arrays/Two pointers/RotateArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Right Rotate an Array by k position (using Reversal Algorithm)
2+
Right Rotate an Array by k positions (using Reversal Algorithm)
33
*/
44
import java.util.Scanner;
55
public class RotateArray

Arrays/Two pointers/RotateArray.java.bak

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/*
2+
Right Rotate an Array by k position (using Reversal Algorithm)
3+
*/
14
import java.util.Scanner;
25
public class RotateArray
36
{

0 commit comments

Comments
 (0)