We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8abfbf1 commit bd9bdf9Copy full SHA for bd9bdf9
1 file changed
data_structures/heap/skew_heap.py
@@ -14,7 +14,7 @@ def __lt__(self, other: Any) -> bool: ...
14
T = TypeVar("T", bound=SupportsLessThan)
15
16
17
-class SkewNode(Generic[T]):
+class SkewNode([T]):
18
"""
19
One node of the skew heap. Contains the value and references to
20
two children.
@@ -93,7 +93,7 @@ def merge(
93
return result
94
95
96
-class SkewHeap(Generic[T]):
+class SkewHeap([T]):
97
98
A data structure that allows inserting a new value and to pop the smallest
99
values. Both operations take O(logN) time where N is the size of the
0 commit comments