摘要: 1.题目描述 Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which 阅读全文
posted @ 2018-02-09 23:41 vlice 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balanced binary tr 阅读全文
posted @ 2018-02-09 22:51 vlice 阅读(73) 评论(0) 推荐(0) 编辑