Skip to content

mitalimehta96/longest_common_subsequence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Longest-Common-Subsequence

To find and print longest common subsequence

What is LCS?

Given 2 sequences X and Y, find a maximum length subsquence Z.

Example:

X = ABCDBAB, Y = BDCABA

A subsequence is a sequence that appears in the same relative order, but not necessarily contiguous.

Subsequences may be ABA, BCA, BBA, BCBA, BDAB etc.

Here, LCS = BCBA and BDAB

About

To find and print longest common subsequence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages