Longest Common Substring (2 Strings)
Given 2 strings, print the longest common substring.Input Format
An integer N.Output Format
2 strings S1, S1
Print the longest common substring.Question Video
|S1|,|S2| <= 10^5Sample Input
11Sample Output
yzpepcoding
codingpepcd
coding
-
Asked in Companies
-
Related Topics
Video Solution
Code Solution
{ }
{ }
Run