digital-root-zero-special-case

Status: IN

The digital root formula `1 + (n-1) % 9` requires an explicit `num == 0` guard because `(-1) % 9 == 8` in Python, which would return 9 instead of 0.

Source: entries/2026/06/06/add-digits-solution.md

JSON