Incorrect test case


  • 0
    I

    N = 2, so there is only 2 nodes, ok. To pass from node #1 to node #2 we need times[0][1] = 1

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


Log in to reply
 

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