Knuth–Morris–Pratt algorithm's logic in 123 characters in JSgist.github.com1 pointChintanGhate11 years ago