Skip to content

Commit 411a201

Browse files
Merge pull request geekcomputers#636 from abhi01274/patch-3
Update Merge-sort.py
2 parents 1dbf8ee + b6b973f commit 411a201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Merge-sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
def merge_sort(L):
13-
mid = int((len(L) - 1) / 2) # calculated value of middle index of array
13+
mid = int((len(L) - 1) / 2) # calculate the value of middle index of array
1414

1515
if len(L) > mid + 2: # this loop will run when length of array is greater than 2
1616
a = merge_sort(L[0:mid]) # a is initialised with left side of the array taking reference as middle index

0 commit comments

Comments
 (0)