Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 277 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 277 Bytes

Reorder an array by x elements in Python

Given an array of size n, write a function to move x elements from the front to the end of the array. For example, given the following array:

[2,4,6,8,10]

To shift 3 elements you would return:

[8,10,2,4,6]