Skip to content
Snippets Groups Projects
Select Git revision
  • 5cba93d25eb47a677c14a56ef90a1e6176d544c2
  • master default protected
2 results

graphe-dico.py

Blame
  • 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