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

Day 396 #795

Closed
vaskoz opened this issue Dec 20, 2019 · 0 comments · Fixed by #796
Closed

Day 396 #795

vaskoz opened this issue Dec 20, 2019 · 0 comments · Fixed by #796
Assignees

Comments

@vaskoz
Copy link
Owner

vaskoz commented Dec 20, 2019

Good morning! Here's your coding interview problem for today.

This problem was asked by Google.

Given a string, return the length of the longest palindromic subsequence in the string.

For example, given the following string:

MAPTPTMTPA
Return 7, since the longest palindromic subsequence in the string is APTMTPA. Recall that a subsequence of a string does not have to be contiguous!

Your algorithm should run in O(n^2) time and space.

@vaskoz vaskoz self-assigned this Dec 20, 2019
@vaskoz vaskoz mentioned this issue Dec 20, 2019
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

Successfully merging a pull request may close this issue.

1 participant