Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Animals rampaging in town, unusually large ones (please help) (wh0.github.io)
4 points by khalby786 on Aug 7, 2024 | hide | past | favorite | 1 comment


The sum part (capturing) is easy: Just be greedy and capture everything you can.

The multiplication part (x bonus) looks hard. You want the minimal product of bonus. It feels like the https://en.wikipedia.org/wiki/Knapsack_problem but I'm not sure.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: