Test case exceeds 65535 bytes limit. Please fix!

  • -1

    In this test case:
    {-5,2,4,1,-2,2,-6,3,-1,-1,-1,-2,-3,5,1,-3,-4,2,-4,6,-1,5,-6,1,-1,-1,1,1,-1,1,1,-1,-1,1,-1,-1,1,1,-1,1,1,1,-1,-1,-1,-1,...}; (tons of 1 and -1)

    I got TLE, so I checked in local IDE. This test case exceeds 65535 bytes limit which is not allowed in JAVA methods.
    Please fix this.

  • 0

    What needs fixing isn't the test case but your code.

    Such data doesn't belong in code. It belongs for example in a text file, which you then read with code. Or maybe try writing it in the code but at least not inside of a method (quick googling showed that it might just be a limit for methods).

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.