3 ms·
That problem is small enough to just brute force. There are only 1612800 calculations to do.
by jjaredsimpson 9y ago
That problem is small enough to just brute force. There are only 1612800 calculations to do.
- gordaco 9y agoOf course... but for many people, in Project Euler the goal is not just to get a solution, it's to create a beautiful and/or efficient solution. This is why reading the comments and finding other people's solutions after solving a problem is usually as fulfilling as solving it, or even more.
- jjaredsimpson 9y agoFor sure, only commenting that for that particular problem, brute force is viable. For many problems brute force is not viable. I was grinding PE a couple years ago to pick up Haskell.