会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
SomnusMistletoe
博客园
首页
新随笔
联系
订阅
管理
2020年3月2日
LeetCode 572. Subtree of Another Tree(子树)
摘要: 题意:判断非空二叉树t是否为非空二叉树s的子树。 分析:对于树s的root结点来说,子树t:(1)与以root为根的树相等(2)在root->left子树中(3)在root->left子树中 /** * Definition for a binary tree node. * struct Tree
阅读全文
posted @ 2020-03-02 11:19 Somnuspoppy
阅读(156)
评论(0)
推荐(0)
公告