Same Tree
摘要:
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value. 1 /** 2 * Definition for binary tree 3 * public class TreeNode { 4 * int val; 5 * TreeNode left; 6 * ... 阅读全文
posted @ 2013-11-15 15:00 Step-BY-Step 阅读(134) 评论(0) 推荐(0) 编辑