Core Skill

Problems

Pattern

heap = []
for x in nums:
		heappush(heap,x)
		if len(heap) > k:
				heappop(heap)

Key Insight