Same string.

c-plus-plus
same
string

#1

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

Thank’s!


#2

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


#3

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


#4

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

#5

Hey! can’t i clear my concepts?