Ad
  • Custom User Avatar
  • Custom User Avatar

    There is only one working approach in Python and it isn't that.

    If C lets that through then the tests need to be hardened significantly.

  • Custom User Avatar

    don't go through the array completely, instead split it into 2 parts, and process them separately, both for reading, copying and adding. i hope i helped

  • Default User Avatar

    My python code is passing all tests, but times out in the performance section after about 190 tests. I have tried different approaches and on my laptop the code executes in less than 0.1 seconds for arrays as large as 50000 and numbers in the array as large as 1000000. I am struggling to find a more efficient solution. Any one can give me a pointer? Thanks.