Practice · 2 of 5
Per-column balances
CHALLENGE
Difficulty: advanced+25 XP
A ledger grid holds debits (negative) and credits (positive). Return the sum of the **absolute per-column balances** (sum each column, then add the absolute values of the column sums). Implement process(int[][] g).
Example: {{5,-3,2},{-4,1,0}} → column sums 1, -2, 2 → 1+2+2 = 5.
Press Submit to check your solution.
Back to lesson: Practice: Grid lab: axes, neighborhoods, walls