【发布时间】:2012-10-08 18:59:29
【问题描述】:
问题
有没有比蛮力法更好的方法来找到 Project Euler 问题 8 的解,即Find the greatest product of five consecutive digits in the 1000-digit number。
我计算了所有可能的产品并选择了最大的一个——蛮力算法。
有没有更高效的算法?或者是暴力破解的唯一方法。
旁注
- 这不是家庭作业问题。
- 我不是要求问题 8 的结果。
【问题讨论】:
-
+1 感谢您的精彩回答!
标签: algorithm