hallo,
i have to find the longest substring of one string into another string. The substrings must all start with the first character, like this:
String to be found: "ABDC", I have to find "A", "AB", "ABC", "ABCD"
String to be searched:
ACDBDDDBCAB
--> in this case the output should be "AB", because is the longest occurence.
Does anyone has a suggestion on how to proceed or have some code that does something similar? thanks for help
i have to find the longest substring of one string into another string. The substrings must all start with the first character, like this:
String to be found: "ABDC", I have to find "A", "AB", "ABC", "ABCD"
String to be searched:
ACDBDDDBCAB
--> in this case the output should be "AB", because is the longest occurence.
Does anyone has a suggestion on how to proceed or have some code that does something similar? thanks for help