2014年6月18日

leetcode - Convert Sorted Array to Binary Search Tree

摘要: 题目:Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.个人思路:1、选... 阅读全文

posted @ 2014-06-18 22:44 laihaiteng 阅读(114) 评论(0) 推荐(0) 编辑

leetcode - Balanced Binary Tree

摘要: 题目:Balanced Binary TreeGiven a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary ... 阅读全文

posted @ 2014-06-18 21:36 laihaiteng 阅读(169) 评论(0) 推荐(0) 编辑

导航