Hi
I need to find the repeated substring in string with repeated times = 2.
Can anyone help me some hint? Thanks in advance.
e.g, input string = abcdcbcbcada
repeated string with repeated times 2 = bc
Hi
I need to find the repeated substring in string with repeated times = 2.
Can anyone help me some hint? Thanks in advance.
e.g, input string = abcdcbcbcada
repeated string with repeated times 2 = bc
This question reeks of homework problem. Since that's the case, I'll make you think about it. What you need to do is create a list of all the possible substrings, count up duplicate occurances of substrings, and then filter out the substrings that were only duplicated twice.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.