mediumDSA
Rotate Array
Rotate an array to the right by k steps.
Ensure function signatures match starter code to run test cases.
index.js
Loading...
Test Case #1
Input: [1,2,3,4,5],2
Expected: [4,5,1,2,3]
Test Case #1
Input: [1,2,3,4,5],2
Expected: [4,5,1,2,3]