This commit is contained in:
krahets
2023-08-06 23:19:07 +08:00
parent fafdebb75c
commit 48adefba25
8 changed files with 136 additions and 33 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ comments: true
is_empty: bool = not max_heap
# 输入列表并建堆
min_heap: List[int] = [1, 3, 2, 5, 4]
min_heap: list[int] = [1, 3, 2, 5, 4]
heapq.heapify(min_heap)
```