99. Recover Binary Search Tree
(待解,树)Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n) space is pretty straight forward. Could you devise a constant space solution?
浙公网安备 33010602011771号