Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Rotate Array
Bookmark
Brute Force
Extra Array
Cyclic
Reverse
Input
Input 1
Input 2
Input 3
Custom
nums
=
[1, 2, 3, 4, 5, 6, 7]
,
k
=
3
1
2
3
4
5
6
7
0
1
2
3
4
5
6
k
3
rotations
0/3
1
2
3
4
5
6
7
0
1
2
3
4
5
6
k
3
rotations
0/3
1
2
3
4
5
6
7
0
1
2
3
4
5
6
k
3
rotations
0/3
7
1
2
3
4
5
6
0
1
2
3
4
5
6
k
3
rotations
1/3
7
1
2
3
4
5
6
0
1
2
3
4
5
6
k
3
rotations
1/3
6
7
1
2
3
4
5
0
1
2
3
4
5
6
k
3
rotations
2/3
6
7
1
2
3
4
5
0
1
2
3
4
5
6
k
3
rotations
2/3
5
6
7
1
2
3
4
0
1
2
3
4
5
6
k
3
rotations
3/3
5
6
7
1
2
3
4
0
1
2
3
4
5
6
k
3
rotations
3/3
algo
master
.
io
Step:
Start: rotate right by 3, one step at a time
0 / 7
Input
Input 1
Input 2
Input 3
Custom
nums
=
[1, 2, 3, 4, 5, 6, 7]
,
k
=
3
0 / 7
algo
master
.
io
Step:
Start: rotate right by 3, one step at a time