会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
habibah_chang
博客园
首页
新随笔
联系
管理
订阅
2020年10月18日
【二叉树思想】652. Find Duplicate Subtrees
摘要: 问题: 给定一棵二叉树,对所有节点为root的子树,若存在重复的子树。将该节点加入res。 Example 1: Input: root = [1,2,3,4,null,2,4,null,null,4] Output: [[2,4],[4]] Example 2: Input: root = [2,
阅读全文
posted @ 2020-10-18 16:29 habibah_chang
阅读(97)
评论(0)
推荐(0)
编辑
公告