String/kmp_search library

Functions

buildLPS(String pattern) List<int>
Builds the Longest Prefix Suffix (LPS) array used in KMP algorithm.
kmpSearch(String text, String pattern) int
Performs KMP search of pattern within text.