A counterexample for an erroneous testcase

  • 0

    Consider the following testcase: [1,2,3,-4,-7,1,4,10]

    The expected answer given by the testcase is 13, but the correct answer is 16.

    I wonder whether it is due to an erroneous testcase or it was my misinterpretation of the instruction.

  • 0

    I get 16 both with my (accepted) code and with the "custom testcase" feature in the "expected answer" box.

    Where did you get the 13 answer?

Log in to reply

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