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

Автор madcannibal, история, 9 лет назад, По-английски

is it possible to solve it by a recursive knapsack algorithm ? it take Time limit exceed when i memo it in 2d array , and if it is impossible how can i solve it by 1d subset sum ? thanks in advance :D

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

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

yes you can solve it by recursive knapsack with 2d array also .. i solve it and get AC here is my code : Uva 11658 — Best Coalitions