Skip to content

Instantly share code, notes, and snippets.

@e-mon
Created October 5, 2015 16:38
Show Gist options
  • Save e-mon/0023988b503161740fe2 to your computer and use it in GitHub Desktop.
Save e-mon/0023988b503161740fe2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from heapq import heappush, heappop
q = []
for i in range(10**7):
heappush(q,[i, 10*i])
while q != []:
x,y = heappop(q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment