in reply to Re: Puzzle: need a more general algorithm
in thread Puzzle: need a more general algorithm
Did you miss Re: Balance columns?
It gets correct answers, works fine with random numbers (as long as they are all non-negative), is linear in memory consumption and the running time is O(N*log(N)).
|
---|
In Section
Seekers of Perl Wisdom