Practice · 1 of 5
Row sums
CHALLENGE
Difficulty: beginner+25 XP
Implement rowSums(int[][] g): return a new array where sums[r] is the sum of row r. The accumulator must reset for every row.
Press Submit to check your solution.
Back to lesson: Practice: 2D array reps