Naive Pattern Searching in String
Tue Feb 08 2022 11:31:29 GMT+0000 (Coordinated Universal Time)
Saved by @Uttam #java #gfg #geeksforgeeks #lecture #string #patternsearching #naive #index
Given a pattern and a text, we need to print all occurrences of the pattern in the text. This code talks about O((m+n-1)*m) solution. Input : -------- Text = "ABCABCD" Pattern ="ABCD" Output: --------- All index numbers where pattern found: 3
Comments