|
|
|
|
|
by sb
5675 days ago
|
|
tl; dr, but a quick note: the presented algorithm takes the first element as the pivot element p: qsort (p:xs) = ...
This is not recommended as it results in worst-case behavior on sorted input lists. (Another commentor correctly pointed out that it requires extra memory for the intermediate lists, too.) |
|