The Longest Common Subsequence Discussions | Algorithms | HackerRank
We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
showing wrong answer for 1 2 3 for the sample test case , for the case 2 my output is 3 9 9 9 7 0 which is one of the longest sequence but it is only checking (3 3 9 9 7 0) (second test case - 9 10
3 9 8 3 9 7 9 7 0
3 3 9 9 9 1 7 2 0 6
)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Longest Common Subsequence
You are viewing a single comment's thread. Return to all comments →
showing wrong answer for 1 2 3 for the sample test case , for the case 2 my output is 3 9 9 9 7 0 which is one of the longest sequence but it is only checking (3 3 9 9 7 0) (second test case - 9 10 3 9 8 3 9 7 9 7 0 3 3 9 9 9 1 7 2 0 6 )