Skip to content
Snippets Groups Projects
Select Git revision
  • 550d435a2008fc0eef83cb0d30fdb53c32de264f
  • master default protected
2 results

listes-fusion.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