Skip to content

Commit 2fa26f6

Browse files
Update algorithms/heap/mergeksortedlists/__init__.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 91aef34 commit 2fa26f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/heap/mergeksortedlists/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def merge_k_lists(lists: List[List[int]]) -> List[int]:
4343
result.append(value)
4444

4545
# 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
46+
# still other elements within this list
4747
if element_index + 1 < len(lists[list_index]):
4848
# We add the next value to the heap
4949
next_value = lists[list_index][element_index + 1]

0 commit comments

Comments
 (0)