What is the difference between heappop and pop(0) on a sorted list?

后端 未结 0 466
耶瑟儿~
耶瑟儿~ 2021-02-10 10:43

I have a list stored in this format: [int, (int, int), ...]

My code looks like this for the first case.

heap.heappush(list_, (a, b))             # b is a t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题