Same string.

Can any coder can tell me how to check the string that it contain another string without using loop?

Thank’s!

Z algorithm :slight_smile:
why you do not search in google … give you many algorithm …
geeksforgeeks is good for you .

Please in during any important contest do not question or … ?
hey ADMIN please close this POST !

1 Like

There are many methods to check whether a string is present within another string, few of them include

  1. find method in C++ (naive algorithm)
  2. KMP algorithm you can find in geeksforgeek or e-maxx.ru
  3. Z Algorithm

Hey! can’t i clear my concepts?