Skip to content

Commit

Permalink
Return arr
Browse files Browse the repository at this point in the history
  • Loading branch information
Alisha committed Apr 30, 2017
1 parent ba7b21e commit 59b7aa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sort/merge_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def merge(left, right):
for i in range(right_cursor,len(right)):
arr.append(right[i])

return arr

array = [1,5, 7,4,3,2,1,9,0,10,43,64]
print(array)
print(merge_sort(array))

0 comments on commit 59b7aa1

Please sign in to comment.