Code RoomAssignment averages
MediumPrep Room Coding #414

Assignment averages

CodingAlgorithms & data structuresEntry–Mid~13 min

A gradebook is a rectangular grid: `scores[r][c]` is student r's score (a non-negative integer) on assignment c. The grid is non-empty and every row has the same length. For the class summary, return a list with one integer per assignment (column): the floor of that column's average. Example: [[80, 90], [70, 100], [90, 95]] gives [80, 95] because floor(240/3) = 80 and floor(285/3) = 95.

Implement
assignment_averages(scores: list[list[int]]) → list[int]
Examples
in[[[80,90],[70,100],[90,95]]]out[80,95]
What a strong answer looks like

State your approach and its time/space complexity out loud before you optimize. Handle the edge cases (empty input, duplicates, overflow), and say why you chose this over the brute force. Green tests are the floor, not the grade.

0:00 of about 13 min
InputExpectedGot
[[[80,90],[70,100],[90,95]]][80,95]not run yetsample