{"id":"counter-two-pass-max-then-count","text":"`countLargestGroup` uses a two-pass pattern over Counter values — first `max()` to find the largest group size, then a second pass to count groups matching that max — rather than a single-pass or heap approach.","truth_value":"IN","source":"entries/2026/06/06/count-largest-group-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":["counter-two-pass-frequency-pipeline"],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"counter-two-pass-max-then-count","truth_value":"IN","reason":"premise"}]}}