Link - Leet Code
Rotate an array ofnelements to the right byksteps.
For example, withn= 7 andk= 3, the array [1,2,3,4,5,6,7]
is rotated to [5,6,7,1,2,3,4]
.
Link - Leet Code
Rotate an array ofnelements to the right byksteps.
For example, withn= 7 andk= 3, the array [1,2,3,4,5,6,7]
is rotated to [5,6,7,1,2,3,4]
.