Блог пользователя kkumar123

Автор kkumar123, история, 3 года назад, По-английски

Question link

QUESTION - Given two strings, and , find and print the total number of ways to insert a character at any position in string such that the length of the Longest Common Subsequence of characters in the two strings increases by one.

n^2 approach acceptable

my approach to this question

Please , can anybody help me what's wrong in my code. I have commented it so that it is easy to understand. I think there is some recounting in my approach.

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится