{"id":"kmp-implemented-over-builtin","text":"`strStr` implements KMP (Knuth-Morris-Pratt) manually rather than using Python's built-in `str.find()`, making the O(n + m) algorithmic intent explicit.","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-implemented-over-builtin","truth_value":"IN","reason":"premise"}]}}