Correct answer is being rejected


  • 0
    N

    in this case
    ip: [[5,2],[5,1],[3,1],[3,4],[3,5]]
    expected: [3,1]
    my answer: [5,1]
    Can someone please explain what is wrong in eliminating [5,1] as redundant? It still leaves a valid tree rooted at 3?


Log in to reply
 

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