in reply to Re: Divide array of integers into most similar value halves
in thread Divide array of integers into most similar value halves

This is not a general solution. Instead of solving the problem, it puts every second item into each set.

That happens to work in this case by chance, but you shouldn't rely on the ordering of the input data.

  • Comment on Re^2: Divide array of integers into most similar value halves