This commit is contained in:
krahets
2023-08-06 23:19:37 +08:00
parent c14ca74b8b
commit 4bc6b8af7b
8 changed files with 25 additions and 26 deletions

View File

@@ -151,7 +151,7 @@
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)
```