Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Puzzle: need a more general algorithm

by fglock (Vicar)
on Jul 09, 2002 at 13:47 UTC ( #180468=note: print w/replies, xml ) Need Help??


in reply to Re: Puzzle: need a more general algorithm
in thread Puzzle: need a more general algorithm

By the way, $columns = 2 gives:

best result: 0 3 4 1 5 2

$columns = 4 gives:

best result: 0 1 2 3 4 5