Open soundaryasenthil02 opened 2 years ago
This is a(n):
Details: Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume that n > m.
I can solve this using KMP algorithm in C++. Please assign me this issue.
This is a(n):
Details: Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume that n > m.