Wrong test case


  • 0
    Z

    Seems like some of test cases for Reverse Pairs problem is wrong. When I submit my code it says wrong answer for the following test case:
    Input:
    [-5,-5]
    Output:
    0
    Expected:
    1

    However, the expected output should be 0. Am I missing something? Is there any way to correct the test case?


  • 0
    Z

    Got it!
    -5 > -10


Log in to reply
 

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