标签:blog div c log amp r ef res as
bool TreeTraversal(TreeNode *p, TreeNode *q){ if(!p&&!q) return true; bool result=false; if (p&&q) { if (p->val!=q->val) result = false; else result = isSameTree(p->left,q->left)&&isSameTree(p->right,q->right); }else{ result=false; } return result; }
标签:blog div c log amp r ef res as
原文地址:http://www.cnblogs.com/liwenzhu/p/4000910.html