+ 2
Why does this code give index error ?
4 odpowiedzi
+ 1
It is a shorter version of merge sort. It sorts and merge a list which has its two half sorted.for example if input is 10, 20 , 30,3,7,9 then output will be 3,7,9,10,20,30.i fix it,list was becoming empty at some point.so a large element has to be added at end of both half list.
0
Check Line 8. Change the 0 to the maximum number you will accept as input. An example is 10 if you want your range to be 1 to 9.
0
No, that's not working ,i did.
0
What exactly is your code supposed to do?