Given two strings. The task is to find the length of the longest common substring.
- Time : O(nm)
- Space : O(min(n,m))
c++
1 | class Solution { |