SortingExplained
Intro Sort
Quick sort that switches to heap sort if recursion gets too deep.
Time
O(n log n)
Extra space
O(log n)
Use it for
Used by C++ std::sort.
Quick sort that switches to heap sort if recursion gets too deep.
Time
O(n log n)
Extra space
O(log n)
Use it for
Used by C++ std::sort.