counter-filter-idiom

Status: IN

Frequency-based problems use `collections.Counter` plus a generator expression to filter and aggregate, avoiding intermediate list allocation — a recurring pattern across the repo.

Source: entries/2026/06/06/sum-of-unique-elements-solution.md

JSON