Skip to content

Commit 30fc9fb

Browse files
authored
Update sort-an-array.py
1 parent f598753 commit 30fc9fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/sort-an-array.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def sortArray(self, nums):
99
:rtype: List[int]
1010
"""
1111
def mergeSort(left, right, nums):
12-
if left >= right:
12+
if left == right:
1313
return
1414
mid = left + (right-left)//2
1515
mergeSort(left, mid, nums)

0 commit comments

Comments
 (0)