Leetcode#572. 另一个树的子树,C++实现

目录 1. 题目 2. 方法一 2.1. 代码 2.2. 结果 1. 题目 2. 方法一 2.1. 代码 class Solution { public: bool isSubtree(TreeNode* s, TreeNode* t) { if(t==NULL) return true; if(s==NULL) return false;
相关文章
相关标签/搜索