J
josh
Here is the code (including the test).
http://pastebin.com/QH46wghT
it's working but i don't understand why this line:
merge_sort(a2)
works. I would think of doing this: a2 = merge_sort(a2) since i don't
see where are we assigning the return value of merge_sort into a2.
I guess there is something with recursion that I completely miss...
Thanks!
http://pastebin.com/QH46wghT
it's working but i don't understand why this line:
merge_sort(a2)
works. I would think of doing this: a2 = merge_sort(a2) since i don't
see where are we assigning the return value of merge_sort into a2.
I guess there is something with recursion that I completely miss...
Thanks!