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;
相關文章
相關標籤/搜索