Idempotent partition around median of 5?

Fool via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 5 14:34:29 PST 2016


On Friday, 5 February 2016 at 21:48:58 UTC, Timon Gehr wrote:
> The goal is to partition though, not to sort.
> Six moves are sufficient. (And necessary. E.g. for 42310.)

Indeed. I was wondering about that. Great job!


More information about the Digitalmars-d mailing list