+ 4
L = [1, 2, 4, 5, 6, 7] Shift = 2 (to right) L = [6, 7, 1, 2, 4, 5]
12th Jan 2021, 3:25 AM
Nicko James Barata
Nicko James Barata - avatar
+ 3
In my example, the first two elements are moved to the right and also the last two elements rotates or became the first two elements. Coder I've edited my example.
12th Jan 2021, 3:28 AM
Nicko James Barata
Nicko James Barata - avatar