One interview question-
Find the longest common substring in the given 2 Strings.
E.g. For the given 2 Strings-
"ticktock", "tiktok"
Output : kto
For the given 2 Strings-
"instagram", "instantgrammar"
Output : insta
Find the longest common substring in the given 2 Strings.
E.g. For the given 2 Strings-
"ticktock", "tiktok"
Output : kto
For the given 2 Strings-
"instagram", "instantgrammar"
Output : insta
Longest Common String