Strong Rows
Each row of grid holds one student's test scores. Return how many students have an average score of at least cutoff.
Example 1
grid [[60,80],[50,60],[90,90]]
cutoff 70
returns 2
The averages are 70, 55 and 90, so two rows qualify.
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
- Total Over LimitEasy
- Trend SlopeEasy
- Trimmed MeanEasy
- Vector DistanceEasy
- Weighted AverageEasy
- Weighted Row ScoresEasy
- Whole DollarsEasy
- Z-ScoresEasy