小编Alc*_*ist的帖子

为什么在Python中堆流行时间复杂度是O(logn)(不是O(n))?

对于列表,heappop将弹出前元素。从列表的开头删除具有时间复杂度O(n)的元素。我想念什么吗?

python heap

3
推荐指数
3
解决办法
656
查看次数

标签 统计

heap ×1

python ×1