Website: https://www.ashatutorials.com/python_heapq.html Contents: 00:00 Heapq (Priority queue) 00:37 Heap definition 01:57 Constructing binary tree from list 04:46 Time Complexity 05:25 Heapq Functions 05:31 heapify() 06:42 heappush() 08:33 heappop() 10:16 heappushpop() 11:40 heapreplace() 13:09 merge() 16:48 nlargest() 17:49 nsmallest() 18:23 Example : Sorting list using heapq
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.