About one test case


  • 0
    J

    There is a test case failed.
    Input:
    [1,5,1,1,6,4]
    Output:
    [4,6,1,5,1,4]
    Expected:
    [1,6,1,5,1,4]

    Shouldn't my answer valid?


  • 0
    T

    There are three 1's in the input, but two in your output. You turned one of the 1's to 4.


Log in to reply
 

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