Skip to main content

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).

Back to lesson: Practice: 2D array reps