@@ -0,0 +1,654 @@
+package leetcode.oj.sameTree;%0A%0A/**%0A * Created by mark on 2/12/14.%0A */%0A%0A%0Apublic class Solution %7B%0A    public boolean isSameTree(TreeNode p, TreeNode q) %7B%0A        if (p == null && q != null) %7B%0A            return false;%0A        %7D else if (p != null && q == null) %7B%0A            return false;%0A        %7D else if (p == null && q == null) %7B%0A            return true;%0A        %7D%0A        if (p.val == q.val) %7B%0A            return isSameTree(p.left, q.left) && isSameTree(p.right, q.right);%0A        %7D else %7B%0A            return false;%0A        %7D%0A    %7D%0A%7D%0A%0Aclass TreeNode %7B%0A    int val;%0A    TreeNode left;%0A    TreeNode right;%0A%0A    TreeNode(int x) %7B%0A        val = x;%0A    %7D%0A%7D

add code