Is this test case wrong?


  • 0
    L

    0_1506223565285_1.jpg
    0_1506223575259_2.png

    It seems that 2 has 2 parents. If we remove [1, 3], the graph is still not a valid tree.

    After remove [1, 3]:
    0_1506223603503_3.png
    After remove [4, 2]
    0_1506223615270_屏幕快照 2017-09-23 下午8.25.45.png


Log in to reply
 

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