public class Solution { //这个函数类似于先序遍历 public boolean HasSubtree(TreeNode A,TreeNode B) { if (B == null || A == null) { return false; } // if (A.val == B.val && (helper(A.left, B.left) && helper(A.right, B.right))) { // return true; // } if (helper(A, B)) { return true; } //树B是树A左子树的子...