摘要: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a 阅读全文
posted @ 2017-10-26 10:15 乐乐章 阅读(135) 评论(0) 推荐(0) 编辑
摘要: labuladong 题解思路 难度中等 899 给出二叉 搜索 树的根节点,该树的节点值各不相同,请你将其转换为累加树(Greater Sum Tree),使每个节点 node 的新值等于原树中大于或等于 node.val 的值之和。 提醒一下,二叉搜索树满足下列约束条件: 节点的左子树仅包含键  阅读全文
posted @ 2017-10-26 10:04 乐乐章 阅读(138) 评论(0) 推荐(0) 编辑
摘要: You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai 阅读全文
posted @ 2017-10-26 08:59 乐乐章 阅读(118) 评论(0) 推荐(0) 编辑