No such thing as a small change | |
PerlMonks |
Re^4: Puzzle: What is the largest integer ... (not "a longest")by tye (Sage) |
on Oct 27, 2005 at 15:25 UTC ( [id://503374]=note: print w/replies, xml ) | Need Help?? |
You can make it even faster by just dropping 5 from the list, since including a 5 excludes all even digits and restricts the solution length to 5 digits (which we quickly prove is too short). You can also make it faster by more efficiently skipping the redundant permutations. That's the nature of quick hacks. (: - tye
In Section
Seekers of Perl Wisdom
|
|