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

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

Hello I am getting TLE using Memorization in Recursion. Problem link

Please see the image for my though process. S1, S2 are subsequences and their values. The idea is to branch out based on the current value of the input array item. Annotated values in blue represent array item and in green represent max size of both subsequences together.

Thank you

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