Longest Common Substring
easy
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.
Constraints
1 < length of strings S1 and S2 <= 200
Format
Input
2 strings S1 and S2
Output
A number representing the length of longest common substring of two strings.
Example
Sample Input
abcdgh
acdghr
Sample Output
4
Question Video