Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about lcs implementation #255

Open
drawnwren opened this issue Jan 7, 2020 · 0 comments
Open

Questions about lcs implementation #255

drawnwren opened this issue Jan 7, 2020 · 0 comments

Comments

@drawnwren
Copy link

Hi, sorry to spam your github. Thanks for your videos and code. They're very helpful.

    ...
   deleted code
    ...
                else
                {
                    temp[i][j] = Math.max(temp[i][j-1],temp[i-1][j]);
                }
                if(temp[i][j] > max){
                    max = temp[i][j];
                }
            }
        }
        return max;
    
    }

In your video, you said that the lower right of the matrix should always be the max. That makes sense to me, so I was curious why you used this max variable to track the max?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant