Help with Spoj DP problem

Правка en1, от rahulkhairwar, 2016-06-21 10:36:34

I was trying this question and this is the solution I came up with, but it timed out as it doesn't use memoization.

But I'm not getting the idea about how to memoize this solution. And I can't even find any good explanation for the question anywhere. Can someone please help?

Thanks.

Теги spoj, dynamic programming, bitmasks

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский rahulkhairwar 2016-06-21 10:36:34 407 Initial revision (published)