Binary Tree or Binary Search Tree?

  • 1

    The 2 examples given in this problem show binary search trees.

    This makes it seem as if the problem is to find longest consecutive sequence in a binary search tree.
    If this is the case, it should be stated explicitly. If it is not the case, the trees in the example should be replaced with binary tress which are not BST.

Log in to reply

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