In Python, we can use heapq.heapify to turn a list into a heap in linear time

Comments