def isSubtree(self, s, t):
        """
        :type s: TreeNode
        :type t: TreeNode
        :rtype: bool
        """
        s_res = self.preorder(s, True)
        t_res = self.preorder(t, True)
        return t_res in s_res

        :type s: TreeNode
        :type t: TreeNode
        :rtype: bool
        
python/572_Subtree_of_Another_Tree.py