小小程序媛  
得之坦然,失之淡然,顺其自然,争其必然

2015年10月15日

摘要: 题目Given preorder and inorder traversal of a tree, construct the binary tree.Note: You may assume that duplicates do not exist in the tree.分析给... 阅读全文
posted @ 2015-10-15 15:55 Coding菌 阅读(148) 评论(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(... 阅读全文
posted @ 2015-10-15 14:45 Coding菌 阅读(175) 评论(0) 推荐(0) 编辑