Quick sort

About the algorithm:

Splits each array into two smaller arrays, left and right. Elements smaller than chosen pivot go left, rest goes right


Categories:  Sort   Efficient  
Best case: Ω(n log n)
Worst case: O(n^2)

Try the algorithm: