from heapq import *from random import shuffledata = range(10)shuffle(data)heap = []for n in data: heappush(heap, n) print heappop(heap)print heappop(heap)print heappop(heap)print heap
Name (required)
email (will not be published) (required)
Website