Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(arr, num) {
- for (let i = 0; i < num; i ++) {
- arr.push(arr.shift());
- }
- console.log(arr.join(" "));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement