{"id":"consistent-string-set-lookup","text":"`countConsistentStrings` converts `allowed` to a set exactly once, ensuring O(1) per-character membership checks rather than O(k) linear scans","truth_value":"IN","source":"entries/2026/06/06/count-the-number-of-consistent-strings-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"consistent-string-set-lookup","truth_value":"IN","reason":"premise"}]}}