DEV Community

Vetrivel p
Vetrivel p

Posted on

How to rearrange the array

let arr = [0,1,2,3,4,5,6,7,8,9,10] - Input

let arr = [10,1,2,3,4,5,6,7,8,9,0] - output

Top comments (0)