mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-09 13:51:48 +08:00
build
This commit is contained in:
@@ -49,7 +49,7 @@ comments: true
|
||||
=== "Python"
|
||||
|
||||
```python title="my_heap.py"
|
||||
def __init__(self, nums: List[int]):
|
||||
def __init__(self, nums: list[int]):
|
||||
""" 构造方法 """
|
||||
# 将列表元素原封不动添加进堆
|
||||
self.max_heap = nums
|
||||
|
||||
Reference in New Issue
Block a user