{"id":"kmp-first-match-semantics","text":"`strStr` returns immediately on the first complete match (`j == m`), guaranteeing the leftmost occurrence index is returned.","truth_value":"IN","source":"entries/2026/06/06/find-the-index-of-the-first-occurrence-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":"kmp-first-match-semantics","truth_value":"IN","reason":"premise"}]}}