about | help | code help+videos | done | prefs |
Given an int value, return a new array with the length of 3 containing: the given number minus one as the first element, the given number as the middle element, and the given number plus one as the last element. get3Elem(3) → [2, 3, 4] get3Elem(0) → [-1, 0, 1] get3Elem(-3) → [-4, -3, -2] ...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