Code Room
CodingMediumcod-g1233
Subject Data wranglingLevel Entry–Mid~13 minCommon in Algorithms & data structures interviewsIndustries Software development

Question

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.

Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.

Run or narrate your approach, then ask the coach.