Skip to content

Commit 3361c55

Browse files
authored
Update skew_heap.py
1 parent a2b2951 commit 3361c55

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
@@ -13,7 +13,7 @@ def __lt__(self, other: object) -> bool: ...
1313
T = TypeVar("T", bound=Comparable)
1414

1515

16-
class SkewNode(Generic[T]):
16+
class SkewNode[T]:
1717
"""
1818
One node of the skew heap. Contains the value and references to
1919
two children.
@@ -90,7 +90,7 @@ def _is_less_than(a: T, b: T) -> bool:
9090
return str(a) < str(b)
9191

9292

93-
class SkewHeap(Generic[T]):
93+
class SkewHeap[T]:
9494
"""
9595
A data structure that allows inserting a new value and popping the smallest
9696
values. Both operations take O(logN) time where N is the size of the heap.

0 commit comments

Comments
 (0)