kmp-empty-needle-returns-zero

Status: IN

When `needle` is empty, `strStr` returns 0 without special-case code — a natural consequence of `j == m` when both are 0.

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

JSON