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

Added Longest Palindrome Subsequence code #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AyushYadav29
Copy link

Problem: Given a sequence, find the length of the longest palindromic subsequence in it.
As another example, if the given sequence is “BBABCBCAB”, then the output should be 7 as “BABCBAB” is the longest palindromic subseuqnce in it. “BBBBB” and “BBCBB” are also palindromic subsequences of the given sequence, but not the longest ones.

Problem: Given a sequence, find the length of the longest palindromic subsequence in it.
As another example, if the given sequence is “BBABCBCAB”, then the output should be 7 as “BABCBAB” is the longest palindromic subseuqnce in it. “BBBBB” and “BBCBB” are also palindromic subsequences of the given sequence, but not the longest ones.
@pedrovgs
Copy link
Owner

Thanks for your contribution @AyushYadav29 I'm afraid before reviewing the code we need to add this problem to the readme's list, we need to add information about the problem to solve and the complexity order of your solution's implementation. You can find an example here. Additionally, you should check your code checkstyle and add coverage to your solution. Once you've done this, we will review the code. Thank you in advance!

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 this pull request may close these issues.

2 participants