Redirecting to
NADOS

Suffix Tree - Application 2 - Longest Repeated Substrings

Given a string print all the start indexes of longest repeated substrings. Refer to video for more info
Input Format
A string s
Output Format
Print the length of Longest repeated substring and in next line print all the start indexes
Question Video
Constraints
|S| <= 10^5
Sample Input
pepapep
Sample Output
3
0 4


  • Asked in Companies
  • Related Topics






Video Solution

Code Solution

Run
 
Run
Id Name