AlgoMaster Logo

Rotate List

values=[1, 2, 3, 4, 5],k=2
0 / 11
algomaster.io
Step:Start: rotate right by moving the last node to the front, k times