TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Optimal denominations to split a dollar

3 点作者 zjonsson将近 11 年前

1 comment

daveloyall将近 11 年前
Recently, I learned (via HN) that prime numbers are the magical building blocks of numbers.<p>By using that fact (without understanding it), I was able to beat the author&#x27;s scores slightly by only including prime coins in the list of candidates.<p><a href="http://jsfiddle.net/JY648/" rel="nofollow">http:&#x2F;&#x2F;jsfiddle.net&#x2F;JY648&#x2F;</a><p>Oh, the author still wins on the 4- and 5-coin variations.<p>When I try to include more than X candidates, it crashes. Help?
评论 #8140263 未加载
评论 #8140389 未加载