Skip to content

Commit 5508c20

Browse files
authored
Update skew_heap.py
1 parent 8166650 commit 5508c20

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
@@ -4,7 +4,7 @@
44
from __future__ import annotations
55

66
from collections.abc import Iterable, Iterator
7-
from typing import Any, Generic, Protocol, TypeVar
7+
from typing import Any, Protocol, TypeVar
88

99

1010
class Comparable(Protocol):
@@ -83,7 +83,7 @@ def merge(
8383
if not root2:
8484
return root1
8585

86-
if root1.value > root2.value:
86+
if root2.value < root1.value:
8787
root1, root2 = root2, root1
8888

8989
result = root1

0 commit comments

Comments
 (0)