about | help | code help+videos | done | prefs |
int[] slideRight4(int[] nums). Given an array of ints with 4 elements, return an array with the elements "slid right" so {1, 2, 3, 4} yields {4, 1, 2, 3}. slideRight4([1, 2, 3, 4]) → [4, 1, 2, 3] slideRight4([57, 21, 12, 68]) → [68, 57, 21, 12] slideRight4([8, 7, 6, 5]) → [5, 8, 7, 6] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy