kmp_search
Find every occurrence of a pattern in text using Knuth-Morris-Pratt with a failure function for reliable substring matching.
Instructions
Find all occurrences of a pattern in text using Knuth-Morris-Pratt algorithm with failure function.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to search in | |
| pattern | Yes | Pattern to find |