Longest Common Substring

1. You are given two strings S1 and S2.
2. You are required to print the length of the longest common substring of two strings.
Input Format
2 strings S1 and S2
Output Format
A number representing the length of longest common substring of two strings.
Question Video
Constraints
1 < length of strings S1 and S2 <= 200
Sample Input
abcdgh
acdghr
Sample Output
4


  • Asked in Companies
  • Related Topics






Video Solution

Code Solution

Run
 
Run
Id Name