|
|
вернуться в форумI use mergesort and I have TLE#3 Why? It's your memory allocation problem (+) You shouldn't allocate memory for auxiliary array every time in your recursive method. You allocate this array O(K*log(N)) times. Try to allocate it only one time. Re: It's your memory allocation problem (+) Thank you very much. I have AC with Java too. |
|
|