{"id":"generator-sum-counting-idiom","text":"Multiple solutions use `sum(1 for ... if ...)` or `sum(... for ...)` as the standard idiom for counting matches — O(1) auxiliary space, no intermediate list allocation.","truth_value":"IN","source":"entries/2026/06/06/number-of-students-doing-homework-at-a-given-time-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"generator-sum-counting-idiom","truth_value":"IN","reason":"premise"}]}}