heapsort
Heapsort is a sorting algorithm that divides the data into a heap, which is a complete binary tree. It then swaps the maximum element with the last element in the heap and repeats this process until all elements are in order. This algorithm sorts the data in-place and has a time complexity of O(n log n).
Requires login.