Aggregate revenue per region from a file too large to hold in memory. You are given an iterator of rows, not a list, and the harness measures peak memory.
amount are skipped, not fatalrows| amount | region |
|---|---|
| 10.5 | APAC |
| 2 | EU |
| 1.5 | APAC |
{"EU": 2, "APAC": 12}rows| amount | region |
|---|---|
| 5 | EU |
| not-a-number | EU |
| 1 | EU |
{"EU": 6}Community-reported interview topic. Not an official company question and no affiliation is implied.
Run against the public tests, or submit to score against all of them.