The test case seems wrong


  • 0
    K

    Input: [[-1],[3,2],[-3,1,-1]]
    Output: -2
    Expected: -1

    -1

    3,2

    -3,1,-1

    will give you -2, which is the min?


  • 3
    F

    You cannot get the -3 at the bottom level. It's too far away.

           -1
        3       2
     -3     1    -1
    

    "Each step you may move to adjacent numbers on the row below."

    so for -1 you can get the 3,2

    for 3 you can get the -3 1
    for 2 you can get the 1 -1


Log in to reply
 

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