随笔分类 - leetcode
convert-sorted-array-to-binary-search-tree
摘要:题目描述 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
阅读全文
convert-sorted-list-to-binary-search-tree
摘要:题目描述 Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 思路: https://siddontang.gitbooks.io/
阅读全文
balcanced-binary-tree
摘要:题目描述 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
阅读全文
path-sum
摘要:题目描述 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
阅读全文
浙公网安备 33010602011771号