about | help | code help+videos | done | prefs |
sumFirstLast
Given 2 arrays of ints, return a new array holding the sum of the first and last elements of two given arrays. If the length of one of the arrays is less than two, return an empty array. sumFirstLast([], []) → [] sumFirstLast([1], [2]) → [] sumFirstLast([1, 2], [-1, -2]) → [0, 0] ...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