Regarding Input [2, 4, 1]


  • 0
    N

    As per my understanding, the output for input [2, 4, 1] should be 0 whereas, test case suggests it to be 2. I wonder why?


Log in to reply
 

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