没有合适的资源?快使用搜索试试~ 我知道了~
leetcode伪代码-mergo-two-binary-tree:合并二叉树
共4个文件
go:2个
md:1个
gitignore:1个
需积分: 15 2 下载量 95 浏览量
2021-06-30
19:58:59
上传
评论
收藏 4KB ZIP 举报
温馨提示
leetcode伪代码merge-two-binary-tree 题目解读: 题目来源: 原文: Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not. You need to merge them into a new binary tree. The merge rule is that if two nodes overlap, then sum node values up as the new value of the merged node. Otherwise, the NOT null node will be used as the node of new tree . 解读: 给定两个二元树Tree1, Tree2 把Tree1跟Tree2 做merge merge 规则如下: 1 假设对应的节点两个原本二元树都有值则
资源推荐
资源详情
资源评论
收起资源包目录
mergo-two-binary-tree-master.zip (4个子文件)
mergo-two-binary-tree-master
mergeTrees_test.go 2KB
mergeTrees.go 2KB
README.md 6KB
.gitignore 269B
共 4 条
- 1
资源评论
weixin_38668672
- 粉丝: 6
- 资源: 907
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功