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.
Having read the editorial, I've just 1 doubt though.. I can't seem to understand as to how dpr[i + 1][x + 1](in the problem setter's code) gives us the value of the LCS of a(i + 1, n) & b(j + 1, m)(according to the editorial)..
Please help..
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
LCS Returns
You are viewing a single comment's thread. Return to all comments →
Having read the editorial, I've just 1 doubt though.. I can't seem to understand as to how dpr[i + 1][x + 1](in the problem setter's code) gives us the value of the LCS of a(i + 1, n) & b(j + 1, m)(according to the editorial).. Please help..