Skip to main content

Practice · 3 of 5

Column with the largest sum

CHALLENGE
Difficulty: intermediate+25 XP

Implement int maxColumn(int[][] grid): the index of the column with the largest sum (ties → earliest). Combine column-major aggregation with the seeded max-index machine from Module 6.

Back to lesson: Practice: 2D array lab