摘要: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. (Hard) Note:A solution using O(n) 阅读全文
posted @ 2016-10-28 21:40 wangxiaobao1114 阅读(150) 评论(0) 推荐(0) 编辑