Hello community!
How can we find no. of occurences of a given substring t of string s in the string s? There are two parts of the problem :
non-overlapping -> for eg. aa in aaa, Ans: 1
overlapping -> Ans: 2
I know many good people here know this.
Thanks in advance.