Amit9's blog

By Amit9, 2 hours ago, In English

0/1 Knapsack — Type 1 : (https://atcoder.jp/contests/dp/tasks/dp_d)
Solution :

Spoiler

0/1 Knapsack — Type 2 : (https://atcoder.jp/contests/dp/tasks/dp_e)
Solution:

Spoiler

0/1 Knapsack — Type 3 : (https://mirror.codeforces.com/gym/101064/problem/L)

How to solve this 3rd one where constraints on both Max capacity(W) and (n * val[i]) is large enough that traditional methods won't wrok ?

  • Vote: I like it
  • -1
  • Vote: I do not like it