|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Puzzle Timeby LanX (Monsignor) |
| on Dec 23, 2012 at 03:47 UTC ( #1010072=note: print w/ replies, xml ) | Need Help?? |
|
And the answer is: 548 (I suppose only positive numbers otherwise multiply it with 2) The following is just a variation of the code I recently used: (I love branch and bound! :) 9! = 362880 possible combinations¹ are checked in a recursive function. output <Reveal this spoiler or all in this thread> Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||