Quicksort may not be fastest.
There might be some unintuitive algorithm, specifically for four elements, which is faster.
I'll have to give this some more thought.
This whole thing sounds like a Computer Science homework problem.
There might be some unintuitive algorithm, specifically for four elements, which is faster.
I'll have to give this some more thought.
This whole thing sounds like a Computer Science homework problem.