Time Complexity: O(n + m) - KMP Algorithm — Failure Function & Matching | OneNoughtOne