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.

21st Jun 2020, 3:44 AM
Yabesh Sam
Yabesh Sam - avatar
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?
21st Jun 2020, 3:54 AM
Tricker
0
If s = 'abab' Distinct Substrings are 'ab', 'ba'. By deleting one 'a' and 'b'
21st Jun 2020, 6:43 AM
Yabesh Sam
Yabesh Sam - avatar