{"id":"lstrip-zero-fallback-prevents-empty-key","text":"The `or '0'` guard after `lstrip('0')` in `num_different_integers` ensures all-zero strings like `\"000\"` canonicalize to `\"0\"` rather than the empty string, which would silently miscount distinct integers.","truth_value":"IN","source":"entries/2026/06/06/number-of-different-integers-in-a-string-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"lstrip-zero-fallback-prevents-empty-key","truth_value":"IN","reason":"premise"}]}}