Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Longest Common Substring

Given two strings ‘X’ and ‘Y’, find the length of the longest common substring.

Example: abcd bacd

Answer - 2

Solutions:

Swift

O(nm)

C++

O(nm)

Installation

Run make to build and run Swift files. Or you can run .playground file.