about | help | code help+videos | done | prefs |
This method accepts an array for the top row and left column of a "Spring Break blanket" of numbers. The blanket is a 2-dimensional array where each element is the sum of the number directly above it added to the number directly to the left of it. This method returns the number in the bottom-right corner of the blanket. Notice that the first element of both of the input arrays will be the same. Both input arrays will be the same length with a minimim length of 2. SpringBreakNumberBlanket([4, 2], [4, 1]) → 3 SpringBreakNumberBlanket([1, 1, 1], [1, 1, 1]) → 6 SpringBreakNumberBlanket([1, 2, 3], [1, 2, 3]) → 14 ...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: 390
Copyright Nick Parlante 2017 - privacy