摘要:
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 sum. F 阅读全文
posted @ 2016-03-15 22:08
YuriFLAG
阅读(123)
评论(0)
推荐(0)
摘要:
Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: 根据BST的定义进行判断即可。注意:左子树的所有节点都小于根节点,右子树的所有节 阅读全文
posted @ 2016-03-15 09:03
YuriFLAG
阅读(93)
评论(0)
推荐(0)

浙公网安备 33010602011771号