id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > SpringBreakNumberBlanket
prev  |  next  |  chance

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)

public int SpringBreakNumberBlanket(int[] row0, int[] col0) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 390

Copyright Nick Parlante 2017 - privacy