Help with a test case.


  • 0
    Z

    My test is failing in the test case. The expected outcome is 4. I am trying to understand how can the outcome be 4? I am expecting the outcome to be 3. Numbers 5, 4 & 3.

    Number 2 is not greater than 2*1 so index =3 should not be a valid case.

    [5,4,3,2,1]


Log in to reply
 

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