CodeOath
← All problems

Rotate Array

Medium
arrays

Rotate the array right by k steps.

Example:

Input: nums = [1,2,3,4,5,6,7], k = 3
Output: [5,6,7,1,2,3,4]