Hey!↵
↵
So I am trying to solve [problem:1187D], but I am getting **_TLE_**, I believe that my **solve** function is _**O(nlog(n))**_, so can anyone help me get what is so slow in my solution?↵
↵
Here is my solution : [submission:57491327]↵
↵
**UPD:** I found out the problem, it's because of the memset (again), I needed to fill only n elements not the hole arrays :)
↵
So I am trying to solve [problem:1187D], but I am getting **_TLE_**, I believe that my **solve** function is _**O(nlog(n))**_, so can anyone help me get what is so slow in my solution?↵
↵
Here is my solution : [submission:57491327]↵
↵
**UPD:** I found out the problem, it's because of the memset (again), I needed to fill only n elements not the hole arrays :)