{"id":"second-highest-constant-time-digit-ops","text":"`second_highest` collects digits into a set bounded at 10 elements (digits 0–9), so all set and `max()` operations are O(1) regardless of input string length.","truth_value":"IN","source":"entries/2026/06/06/second-largest-digit-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":"second-highest-constant-time-digit-ops","truth_value":"IN","reason":"premise"}]}}