adychn

Results comments of adychn

When dp(x) = -1, we skip the problem. As written in his article, # 子问题无解,跳过 if subproblem == -1: continue Besides, what is the meaning of dp(-1)? It is not...

I see your concern. Yes, the last condition with min {} will cause -1 to be propagated if dp(n) = -1.