Codes();

Zoom out : CTRTL -

Zoom in : CTRTL +

Knuth-Morris Pratt
Algorithm

Enter the text and pattern

KMP("TEXT","PATTERN")

Example

KMP("GRAPHICALSTRUCTURE","ALSTR")

KMP("GEEKS FOR GEEKS","GEEKS")

KMP("ABABDABACDABABCABAB","ABABCABAB")