摘要:
题目描述 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 阅读全文
摘要:
题目描述 Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 思路: https://siddontang.gitbooks.io/ 阅读全文
摘要:
题目描述 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 阅读全文
摘要:
题目描述 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 阅读全文