mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
refactor: Replace list()
and dict()
calls with literals (#7198)
This commit is contained in:
@ -9,7 +9,7 @@ class Heap:
|
||||
|
||||
def __init__(self, key: Callable | None = None) -> None:
|
||||
# Stores actual heap items.
|
||||
self.arr: list = list()
|
||||
self.arr: list = []
|
||||
# Stores indexes of each item for supporting updates and deletion.
|
||||
self.pos_map: dict = {}
|
||||
# Stores current size of heap.
|
||||
|
Reference in New Issue
Block a user