Mergesort Python Implementation

on compilation code gives error: list assignment index out of range
this error occurs in the function merge

Hey @icoder18, your code is perfectly fine, you just need to remove single line, in

l1=[0]*(n1)
l2=[0]*(n2)
l2=list()
for i in range(0,n1):
    l1[i]=l[low+i];

Remove l2 = list() from here, and no other change is needed.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush: