Practice · 1 of 5
Row average
CHALLENGE
Difficulty: intermediate+25 XP
Implement double rowAverage(int[][] grid, int row): the average of one row. One pass over grid[row], divide by its length as a double.
Press Submit to check your solution.
Back to lesson: Practice: 2D array lab