+ 1
How to find the longest common substring from more than two strings?
I can use DP when I have 2 strings but what should I do in this case.
2 ответов
+ 9
You can put all the strings you want to examine in a list and then use difflib module with SequenceMatcher.
+ 2
Thanks Lothar I solved the longest common substring problem.