Statement

Given two strings s1 and s2, you have to find the length of the Longest Common Substring (LCS) in both these strings.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.