FunctionRacerProblemsRace

Column Maximums

EasyNumPyPython

grid is a 2-D array. Return a list with the largest value in each column, from the first column to the last.

Example 1

grid [[1,9,3],[4,2,8]]
returns [4,9,8]

Column 0 has 1 and 4, column 1 has 9 and 2, column 2 has 3 and 8.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More NumPy problems