Skip to content
Snippets Groups Projects
Select Git revision
  • 3d5700c4eeeaa6a1ad60db8da73cb17a9ac1b469
  • main default protected
2 results

Rapport.ipynb

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