about | help | code help+videos | done | prefs |
minus2
Given an array of ints, change each element to be 2 less than it previously was. minus2([5, 4, 3]) → [3, 2, 1] minus2([0, -1, -100]) → [-2, -3, -102] minus2([-4, -5, -6]) → [-6, -7, -8] ...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: 201 Post-solution available
Copyright Nick Parlante 2017 - privacy