2017年9月11日
摘要: 题目描述 Given an array where elements are sorted in ascending order, convert it to a height balanced BST. Given an array where elements are sorted in asc 阅读全文
posted @ 2017-09-11 21:49 王小东大将军 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 思路: https://siddontang.gitbooks.io/ 阅读全文
posted @ 2017-09-11 21:29 王小东大将军 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 题目描述 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 the 阅读全文
posted @ 2017-09-11 21:21 王小东大将军 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given s 阅读全文
posted @ 2017-09-11 21:10 王小东大将军 阅读(145) 评论(0) 推荐(0) 编辑