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 Memory Exceeded. And the exit code of your program is -9, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
Merge sort:
JOJ Answer
Merge sort: 4 4 8 8 11 11 12 12 12 12 14 14 14 14 17 17 19 19 22 22 22 22 25 25 26 26 26 26 26 26 26 26 28 28 34 34 36 36 36 36 38 38 39 39 40 40 42 42 43 43 43 43 43 43 44 44 44 44 44 44 46 46 46 46 46 46 49 1 50 2 50 2 51 3 56 8 56 8 58 10 64 16 65 17 68 20 68 20 68 20 71 23 72 24 72 24 74 26 74 26 74 26 76 28 76 28 80 32 80 32 81 33 82 34 82 34 82 34 86 38 86 38 88 40 88 40 90 42 92 44 92 44 97 1 97 1 97 1 97 1 100 4 100 4 102 6 106 10 110 14 111 15 112 16 112 16 116 20 116 20 117 21 118 22 118 22 119 23 124 28 124 28 124 28 125 29 127 31 128 32 129 33 130 34 130 34 131 35 131 35 140 44 142 46 144 0 144 0 144 0 144 0 145 1 145 1 151 7 156 12 157 13 158 14 158 14 161 17 162 18 165 21 167 23 168 24 169 25 169 25 171 27 172 28 172 28 172 28 172 28 175 31 175 31 176 32 180 36 180 36 180 36 184 40 187 43 195 3 196 4 196 4 196 4 196 4 196 4 198 6 198 6 199 7 200 8 200 8 201 9 202 10 202 10 203 11 204 12 204 12 208 16 214 22 218 26 218 26 219 27 219 27 220 28 220 28 222 30 224 32 224 32 224 32 224 32 224 32 224 3