Topic: Language Problem / Level: advanced

Problem: Write a program to implement the Knuth-Morris-Pratt (KMP) algorithm for substring search.

Run the code to see the output here...