But it is a sensible improvement.
(EDIT: I typoed my original comment. It O(n^2) space; worst case is O(n) space and O(n^2) time for the vanilla alg.)
[1] https://en.wikipedia.org/wiki/Quicksort
But it is a sensible improvement.
(EDIT: I typoed my original comment. It O(n^2) space; worst case is O(n) space and O(n^2) time for the vanilla alg.)
[1] https://en.wikipedia.org/wiki/Quicksort