kmp-first-match-semantics

Status: IN

`strStr` returns immediately on the first complete match (`j == m`), guaranteeing the leftmost occurrence index is returned.

Source: entries/2026/06/06/find-the-index-of-the-first-occurrence-in-a-string-solution.md

JSON