Incorrect answer


  • 0
    Y

    Hi,

    Could someone explain to me why this answer is incorrect?

    Input:
    "DDIIDI"
    Output:
    [4,3,2,5,6,1,7]
    Expected:
    [3,2,1,4,6,5,7]

    Thanks!


Log in to reply
 

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