摘要: 题目描述:(链接)Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ide... 阅读全文
posted @ 2015-12-01 19:36 skycore 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)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) ... 阅读全文
posted @ 2015-12-01 19:20 skycore 阅读(164) 评论(0) 推荐(0) 编辑