Skip to content

Commit bd9bdf9

Browse files
authored
Update skew_heap.py
1 parent 8abfbf1 commit bd9bdf9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

data_structures/heap/skew_heap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __lt__(self, other: Any) -> bool: ...
1414
T = TypeVar("T", bound=SupportsLessThan)
1515

1616

17-
class SkewNode(Generic[T]):
17+
class SkewNode([T]):
1818
"""
1919
One node of the skew heap. Contains the value and references to
2020
two children.
@@ -93,7 +93,7 @@ def merge(
9393
return result
9494

9595

96-
class SkewHeap(Generic[T]):
96+
class SkewHeap([T]):
9797
"""
9898
A data structure that allows inserting a new value and to pop the smallest
9999
values. Both operations take O(logN) time where N is the size of the

0 commit comments

Comments
 (0)