reduce-gcd-no-initializer

Status: IN

The x-of-a-kind solution calls `reduce(gcd, counts)` without an initial value, meaning an empty deck would raise `TypeError` — safe under LeetCode constraints but not defensively coded.

Source: entries/2026/06/06/x-of-a-kind-in-a-deck-of-cards-solution.md

JSON