A sliding window isn't nearly as efficient as Knut...
# stdlib
c
A sliding window isn't nearly as efficient as Knuth-Morris-Pratt (which is really simple to implement), so you could also consider that.