I was not updating the list from the recursive call.
> merge_sort(left,'left')
> merge_sort(right,'right')
left = merge_sort(left,'left')
right = merge_sort(right,'right')
-A
-Abhi
On Thu, Mar 22, 2012 at 1:40 PM, Abhishek Pratap wrote:
> I am imlpementing a merge sort algo for clari
I am imlpementing a merge sort algo for clarity purposes but my
program is giving me weird answers. Sometimes it is able to sort and
other times it does funky things. Help appreciated
from random import *
from numpy import *
nums = [random.randint(100) for num in range(4)]
#nums = [3,7,2,10]
de