Given a string S and n string T1,T2,…,Tm
Find the longest substring of S that can be created using T1,T2,…Tm. One string can be used multiple times.
Input:
3
abbac
ac
b
a
Output:
5
String occurences 2 | |
Repeated string | |
Compare substring | |
Palindrome substring 2 | |
String combinations | |
Frequent substring | |
Good pairs | |
String rotation | |
Bit reversing | |
Repeated string 2 |