http://qs1969.pair.com?node_id=182287


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)).

  • Comment on Re: Re: Puzzle: need a more general algorithm