views:

99

answers:

1

I have meet following problem too for example there is given two text find longest string that occur in both i think we should create string array where we should put common srings and then compare their length and which length will be largest print it is there fast method?

+3  A: 

The longest common substring problem: http://en.wikipedia.org/wiki/Longest_common_substring_problem

zaf
please help with code
Wikipedia has pseudocode, try converting that to your language of choice. If you still have problems then open another question.
zaf