three elements to recover in one of the test cases

  • 0

    [3,null,2, null, 1] is one of the inputs shown. The question says "Two elements of a binary search tree (BST) are swapped by mistake."

    Doesn't the test case have three elements swapped.

Log in to reply

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