摘要: 题目描述:(链接)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 n... 阅读全文
posted @ 2015-12-17 22:27 skycore 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.解题思路: 1 /** 2 * Definition for ... 阅读全文
posted @ 2015-12-17 21:38 skycore 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given an array where elements are sorted in ascending order, convert it to a height balanced BST.解题思路: 1 /** 2 * Definition for a binary tre... 阅读全文
posted @ 2015-12-17 19:32 skycore 阅读(111) 评论(0) 推荐(0) 编辑