Test Cases Not Complete?


  • 0
    X

    Based on the description of the problem, I think negative number may also be valid for a node value. Therefore, one corner case would be overflow from Int_MAX to Int_MIN. If the parent is Int_MAX, and its child is Int_MIN, should it be considered as consecutive? :D


Log in to reply
 

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