
树
子长
这个作者很懒,什么都没留下…
展开
-
算法期中1002. 合并二叉树
Description 输入两个二叉树T1和T2,要求对T1和T2进行合并. 合并是指将二叉树同一位置节点上的数求和,作为合并后二叉树相应位置节点的数值. 如果某个位置上只有一个二叉树有节点,则合并后的二叉树对应位置上的节点上的数值就等于这个节点上的数值.例如: T1 T2 1原创 2017-11-13 19:24:47 · 294 阅读 · 0 评论 -
55. Jump Game
98 Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node’s key.原创 2018-01-10 22:12:53 · 161 阅读 · 0 评论