mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-20 07:21:02 +00:00
build
This commit is contained in:
@@ -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)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user