about | help | code help+videos | done | prefs |
Given an array with exactly two numbers, return an array with three numbers, with the same first and last elements as the given array, and with the middle number equal to the sum of those elements. insertSum([3, 4]) → [3, 7, 4] insertSum([0, 0]) → [0, 0, 0] insertSum([9, 1]) → [9, 10, 1] ...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