{"id":"count-asterisks-linear-scan","text":"`count_stars_except_between_pair` processes input in a single O(n) pass with O(1) auxiliary space using a toggle-flag state machine.","truth_value":"IN","source":"entries/2026/06/06/count-asterisks-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"count-asterisks-linear-scan","truth_value":"IN","reason":"premise"}]}}