I have a string vector in C++ with this [Apples,Orangesandgrapes], Now i would like too search the vector not for the whole string but the part of the string that says “andgrapes” and would like to change it too, “nograpes”. All just an example.
Answer on Substring search interview question
Sorry I couldn’t make it clearer.
You can do something like this: