AllRowsSum2
This problem checks your ability to use helper methods as described to solve a bigger problem involving 2D arrays.
Complete the method allRowsSum,
which finds the sum of every row in the given two-dimensional array returns them all stored in a one-dimensional array.
You must use the given helper method rowSum
shown below which takes in a one-dimensional array of integers and returns their sum.
An example is shown below
input:
result: { 7, 9}
input:
result: {7, 9, 9}
Type your solution
Skills Practiced:
3.C
3.E
4.A
4.B
Saved
Saved