How can the answer be -1 for(-1), (2,3),(1,-1, -3).


  • 2
    S

    I guess I had trouble to understand what adjacent node means. But for the {{-1},{2,3},{1,-1,-3}}, the answer showed -1. It does not make sense.


  • 3
    S
       -1
      2  3
    1 -1 -3
    

    the most right line, -1 -> 3 -> -3.


  • 0
    Y

    aggree ............


  • 3
    Z

    I had same issue before. The definition of adjacent node is not quite obvious from the given example. A node's adjacent nodes are the two nodes below it, but not all the nodes in the next line.


  • 0
    C

    I concur. The problem statement is ambiguous. Why don't the authors update the problem description based on this feedback so people don't waste their time?


  • 0
    C

    I have same issue too. I dont understand why it is not -2..... Dose -2 larger than -1??


Log in to reply
 

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