Java Program to find the longest repeating sequence in a string
In this program, we need to find the substring which has been repeated in the original string more than once.
In the above string, the substring bdf is the longest sequence which has been repeated twice.
The algorithm of the program is given below.
lcp(String s, String t)
Longest repeating sequence: bdf