{"id":"count-letters-linear-time","text":"`count_letters` runs in O(n) time because each character is consumed by exactly one iteration of the inner while loop across the entire execution","truth_value":"IN","source":"entries/2026/06/06/count-substrings-with-only-one-distinct-letter-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"count-letters-linear-time","truth_value":"IN","reason":"premise"}]}}