MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / isSymmetric

Method isSymmetric

InterviewBit_problems/CP_BinaryTree/Solution.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24int Solution::isSymmetric(TreeNode* root)
25{
26 if(root==NULL) return true;
27 if(root->left==NULL && root->right==NULL) return true;
28 return Symm(root->left,root->right);
29
30
31}

Callers

nothing calls this directly

Calls 1

SymmFunction · 0.85

Tested by

no test coverage detected