counter-default-zero

Status: IN

`Counter[str(i)]` returns 0 for digits not present in `num`, which is load-bearing for correctness when the expected count is also 0 — a plain `dict` would raise `KeyError`

Source: entries/2026/06/06/check-if-number-has-equal-digit-count-and-digit-value-solution.md

JSON