Suffix Tree - Application 2 - Longest Repeated Substrings
Given a string print all the start indexes of longest repeated substrings. Refer to video for more infoInput Format
A string sOutput Format
Print the length of Longest repeated substring and in next line print all the start indexesQuestion Video
|S| <= 10^5Sample Input
pepapepSample Output
3
0 4
-
Asked in Companies
-
Related Topics
Video Solution
Code Solution
{ }
{ }
Run