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.
2 parents 1dbf8ee + b6b973f commit 411a201Copy full SHA for 411a201
Merge-sort.py
@@ -10,7 +10,7 @@
10
11
12
def merge_sort(L):
13
- mid = int((len(L) - 1) / 2) # calculated value of middle index of array
+ mid = int((len(L) - 1) / 2) # calculate the value of middle index of array
14
15
if len(L) > mid + 2: # this loop will run when length of array is greater than 2
16
a = merge_sort(L[0:mid]) # a is initialised with left side of the array taking reference as middle index
0 commit comments