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

2015年10月17日

摘要: 题目Given an array where elements are sorted in ascending order, convert it to a height balanced BST.分析给定一个有序序列,构造一颗平衡的二叉查找树。思想:序列中值构造根节点,递归,前半... 阅读全文
posted @ 2015-10-17 13:29 Coding菌 阅读(132) 评论(0) 推荐(0) 编辑
 
摘要: 题目Given inorder and postorder traversal of a tree, construct the binary tree.Note: You may assume that duplicates do not exist in the tree.Sh... 阅读全文
posted @ 2015-10-17 13:14 Coding菌 阅读(92) 评论(0) 推荐(0) 编辑