Good Columns
Each column of grid is one question on a quiz and each row is a student. Return a list of the column numbers whose average is strictly above cutoff, in increasing order. Return an empty list if no column qualifies.
Example 1
grid [[1,8,5],[3,6,5]]
cutoff 4
returns [1,2]
The column averages are 2, 7 and 5, so columns 1 and 2.
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
- Group MaximumsEasy
- Is SortedEasy
- Is SymmetricEasy
- Largest GapEasy
- Latest PeakEasy
- Merge and SortEasy
- Missing NumbersEasy
- Most Common ValueEasy