DEV Community

Discussion on: What is Quicksort

Collapse
 
grayjack profile image
GrayJack

Or you could select a random element to be the pivot, that way you reduce a lot the chances of waving the worst case