Skip to content
This repository has been archived by the owner on Oct 7, 2019. It is now read-only.

Commit

Permalink
Merge pull request #166 from rajashree23/lcs
Browse files Browse the repository at this point in the history
Longest common subsequence in c++
  • Loading branch information
ankitjena authored Oct 8, 2018
2 parents ee1259c + caa35c9 commit ae05b01
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ void print(int i,int j)
}

void lcs()
{
m=strlen(x);
{ m=strlen(x);
n=strlen(y);
for(i=0;i<=m;i++)
c[i][0]=0;
for(i=0;i<=n;i++)
c[0][i]=0;

//c, u and l denotes cross, upward and downward directions respectively

for(i=1;i<=m;i++)
for(j=1;j<=n;j++)
{
Expand Down

0 comments on commit ae05b01

Please sign in to comment.