Find all substrings which are repeated
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
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.