[LeetCode] 99. Recover Binary Search Tree 復原二叉搜索樹Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Example 1:Input: [1,3,null,null,2] 1 / 3 \ 2 Output: [3,1,null,null,2] 3 / 1 \ 2Example 2:...
www.dbjr.com.cn/article/2177...htm 2025-6-1