Write a efficient algorithm to do this
Is Knuth Morris Pratt better or worse than Boyer Moore?
Is that true for all type of patterns and text
Have you tried KMP (Knuth Morris Prutt) algorithm?
or u want something faster ?
find a string(pattern) in a given text?
Is Knuth Morris Pratt better or worse than Boyer Moore?
Is that true for all type of patterns and text
find a string(pattern) in a given text?
Have you tried KMP (Knuth Morris Prutt) algorithm?
or u want something faster ?