about | help | code help+videos | done | prefs |
array_shiftNWrap - This method takes an integer array and an integer as parameters to shift the contents of the array down by the value of the given integer. If any values drop off the beginning of the array wrap what drops off to the end of the array. Precondition: shift >= 0 array_shiftNWrap([1, 2, 3, 4, 5, 6, 7], 2) → [3, 4, 5, 6, 7, 1, 2] array_shiftNWrap([], 2) → [] array_shiftNWrap([1, 2, 3, 4, 5, 6, 7], 14) → [1, 2, 3, 4, 5, 6, 7] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy