Column Maximums
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
1 <= rows, columns <= 10
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Column WinnersEasy
- Compound GrowthEasy
- Count BetweenEasy
- Count IncreasesEasy
- Count Sign ChangesEasy
- Drop Lowest AverageEasy
- Empty SeatsEasy
- Fill MissingEasy