+ 2
to find subsequence of a sequence
can anybody give some idea how i approach this? a main function which inputs two strings from the user and calls the function above with the two string arguments and prints whether the first string is a subsequence of the second or not.
1 Respuesta
+ 1
try using the string::find method:
https://en.cppreference.com/w/cpp/string/basic_string/find
example:
https://code.sololearn.com/cprZENA237R5/#cpp