generator-sum-counting-pattern

Status: IN

Solutions use `sum(1 for x in seq if cond)` as the standard counting idiom rather than `len([...])` or manual accumulators — avoids intermediate list allocation.

Source: entries/2026/06/06/count-integers-with-even-digit-sum-solution.md, entries/2026/06/06/count-items-matching-a-rule-solution.md

JSON