| 12 | class Solution { |
| 13 | public: |
| 14 | bool isSameTree(TreeNode* p, TreeNode* q) { |
| 15 | if(p==NULL || q==NULL) |
| 16 | { |
| 17 | return (p==q); |
| 18 | } |
| 19 | return ((p->val==q->val) && isSameTree(p->left,q->left) && isSameTree(p->right,q->right)); |
| 20 | } |
| 21 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected