Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is -11, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
Merge sort:
JOJ Answer
Merge sort: 8 8 11 11 19 19 29 29 32 32 32 32 35 35 42 42 53 5 65 17 92 44 96 0 101 5 107 11 107 11 112 16 120 24 120 24 120 24 120 24 120 24 125 29 131 35 134 38 142 46 143 47 144 0 152 8 154 10 155 11 155 11 156 12 172 28 174 30 192 0 232 40 232 40 235 43 238 46 249 9 255 15 264 24 287 47 290 2 295 7 295 7 296 8 298 10 299 11 308 20 320 32 325 37 329 41 338 2 343 7 350 14 362 26 362 26 364 28 386 2 401 17 401 17 401 17 407 23 410 26 464 32 470 38 483 3 485 5 486 6 490 10 497 17 502 22 502 22 512 32 524 44 524 44 524 44 537 9 552 24 559 31 576 0 584 8 593 17 596 20 596 20 610 34 615 39 617 41 617 41 617 41 632 8 632 8 632 8 632 8 632 8 648 24 650 26 665 41 673 1 673 1 675 3 693 21 700 28 704 32 713 41 727 7 729 9 732 12 743 23 752 32 755 35 755 35 778 10 791 23 808 40 815 47 817 1 819 3 824 8 824 8 824 8 830 14 842 26 857 41 876 12 887 23 892 28 893 29 898 34 901 37 911 47 952 40 955 43 956 44 962 2 962 2 983 23 1000 40 1025 17 1025 17 1028 20 1028 20 1028 20 1037 29 1048 40 1048 40 1050 42 1053 45 1072 16 1