Dear Mr.Whodgson
strspn finds the length of the substring in s1 which has charcters from s2....but what i want is to find the substring which is common to both the strings....But thank you very much for your reply..
Balanivash...
User Profile
Collapse
-
Longest common substring
Hi...
could anyone help in finding the best algorithm for finding the longest common sub-string in two strings.....I'm familiar with the efficient algorithm to find the longest common sub-sequence and i tried modifying the same a bit to make it work for sub-string but i dont get the correct results...
Balanivash
No activity results to display
Show More
Leave a comment: