TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Animals rampaging in town, unusually large ones (please help)

4 pointsby khalby78610 months ago

1 comment

gus_massa10 months ago
The sum part (capturing) is easy: Just be greedy and capture everything you can.<p>The multiplication part (x bonus) looks hard. You want the minimal product of bonus. It feels like the <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Knapsack_problem" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Knapsack_problem</a> but I&#x27;m not sure.