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

2015年10月18日

摘要: 题目Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.分析给定有序链表,构造平衡的二叉查找树。与上题本质相同,只不... 阅读全文
posted @ 2015-10-18 13:46 Coding菌 阅读(120) 评论(0) 推荐(0) 编辑
 
摘要: 题目Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the... 阅读全文
posted @ 2015-10-18 13:09 Coding菌 阅读(263) 评论(0) 推荐(0) 编辑