FunctionRacerProblemsRace

Good Columns

EasyNumPyPython

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

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