摘要: 算法分析:这道题很简单,利用递归即可。 阅读全文
posted @ 2016-09-03 16:34 32ddd 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 问题描述:题意就是二叉树中有两个节点交换了,恢复结构。 Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. 算法分析:其 阅读全文
posted @ 2016-09-03 15:37 32ddd 阅读(301) 评论(0) 推荐(0) 编辑