Practice · 5 of 5
Debug: running totals instead of row sums
CHALLENGE
Difficulty: beginner+25 XP
rowSums compiles and returns the right *shape*, but each entry is a running total of the grid so far instead of that row's sum. Fix the accumulator placement (signature stays the same).
Press Submit to check your solution.
Back to lesson: Practice: 2D array reps