Wrong answer for a test case


  • 0
    A

    This is the test case i ran on the code. The OJ tells me the output should be true , but the correct answer is false, which even my code confirms . What could be causing this ??

    Test case :[5,1,5,5,2,4]

  • 2
    W

    1,2,4

    It has a valid triplet.

    OJ is correct.


Log in to reply
 

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