Full threadjkuria·Rabin-Karp algorithm is also a fun one.https://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_algorithmView on HN