Rotate Right
Medium · Slices
Rotate nums to the right by k steps. k may be larger than len(nums): use k % len. Rotating an empty slice returns an empty slice. Do not modify the input; return a new slice.
Write RotateRight(nums, k).
Next: Matrix Sum