Skip to content
Snippets Groups Projects
Select Git revision
  • 8568f697bdd236238b5c29c4452460130d9a484a
  • master default protected
  • tgicquel-master-patch-00157
3 results

test_heap.py

Blame
  • Forked from Vuillemot Romain / INF-TC1
    Source project has a limited visibility.
    test_heap.py 141 B
    import heapq
    tas = []
    
    for i in range(5): heapq.heappush(tas, i)
    
    while not len(tas) == 0: 
      print(heapq.heappop(tas), end=" ")
    
    # 0 1 2 3 4