generator-over-list-for-aggregation

Status: IN

`maximumWealth` uses `max(sum(row) for row in accounts)` with a generator expression (not a list comprehension), achieving O(1) auxiliary space by avoiding materialization of intermediate results.

Source: entries/2026/06/06/richest-customer-wealth-solution.md

JSON