0
How can I solve this? Anyone give hint?
Input : a = 'abcab' Output: 2 Because the 'cab' word presents in a two times.i.e. cab ,cab.
3 Answers
0
It could also be "bac" and "bac". Tell whether is there any other input regarding a starting value or a reference point?
0
If s = 'abab'
Distinct
Substrings are 'ab', 'ba'. By deleting one 'a' and 'b'