Skip to content

Commit 8166650

Browse files
authored
Update skew_heap.py
1 parent b863139 commit 8166650

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data_structures/heap/skew_heap.py

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

1717

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

9696

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

0 commit comments

Comments
 (0)