Mysura Reddy

Mysura Reddy

  • NA
  • 74
  • 17.4k

To return the longest common Sub-String of two strings

Aug 26 2015 1:46 AM
   I want a program to return the longest common sub-string  of two strings.
ex:- if two strings are
      string str1="Hello how are you"
      string str2="Hello chinni, how you doing"
the output should return 'Hello'(The longest common substring) 

Answers (1)