Find longest repeating substring in string?

后端 未结 1 1316
旧巷少年郎
旧巷少年郎 2021-01-17 01:49

I came across below program which looks perfect. Per me its time complexity is nlogn where n is the length of String.

n for storing different strings,nlog for sortin

相关标签:
1条回答
  • 2021-01-17 02:18

    Have a look at this algorithm given in geeksforgeeks, this might be helpful:

    http://www.geeksforgeeks.org/suffix-tree-application-3-longest-repeated-substring/
    
    0 讨论(0)
提交回复
热议问题