Ad
  • Custom User Avatar

    I have passed all tests

    No you didn't, the timeout happened before you could complete all of them, your code isn't fast enough to pass them all, try another approach, O(n2) solutions won't work.