Ad
  • Default User Avatar

    Hi!

    The random test cases do use very large arrays to test if the solution is efficient enough. If your code passes the initial tests and times out during the random ones, then it just means that your code is running slightly too slow. It isn't bad or broken at all, but you just need to rethink if you can make some parts faster.