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 91aef34 commit 2fa26f6Copy full SHA for 2fa26f6
algorithms/heap/mergeksortedlists/__init__.py
@@ -43,7 +43,7 @@ def merge_k_lists(lists: List[List[int]]) -> List[int]:
43
result.append(value)
44
45
# We check if the element index is less than the current list it can be found in. This means that there are
46
- # still other elements withing this list
+ # still other elements within this list
47
if element_index + 1 < len(lists[list_index]):
48
# We add the next value to the heap
49
next_value = lists[list_index][element_index + 1]
0 commit comments