## Heap Sort

Heap sort is one of the fastest sorting algorithms. It uses binary heap data structure and its time complexity is O(Log n). In this sorting algorithm, we first build a heap using the given elements. If we want to sort the elements in ascending order, we create a Min Heap. Read more…