XP is just a number | |
PerlMonks |
Re: Puzzle Timeby LanX (Saint) |
on Dec 23, 2012 at 03:47 UTC ( [id://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
|
|