Computer Science, asked by rohinithorat1998, 13 days ago

the length of Str after recursively removing the
trence of Str2 in Str1
2687101
67
Value of Str.
Value of Str2
Example-1:
Input
xxyzyzyv
xyz
Output
2.
Example-2
Input:
abcabc
Value of Stri
Value of Str.
xyz
Output:
6
Explanation:
In example-1. The first string Stri="wxyzyzy and the
second string Str2="xyz". We have to find the string
Str2 as an occurrence in Str 1. From 1st position to 3rd
position in the first string("xxyzyzwis xyz"
After removing the first occurrence Str 1 "Wyzw
Still, there is "xyz" in Str. From the oth position to
the 2nd position of string Str1 contains the second
string. We have to remove this occurrence also
Now the remaining character in Strl is Hence
the length of Str1-2 Therefore the output is 2​

Answers

Answered by dipakvrma79
0

Answer:

the outlet fashions/customer/care //number/6289204717

Similar questions