on-internet
← Community

Find all substrings which are repeated

Stack Overflow ·

I need to find all substring of length greater than 2 which are repeated. I can solve it using brute force .Is there any other optimal solution available? eg . SpringisHereAgainSpringHere Sample output : Spr,Spri,Spring,Here,Her

Comments

Sign in or sign up to comment and upvote.

No comments yet.