(TreeNode root)
| 11 | */ |
| 12 | class Solution { |
| 13 | public boolean isSymmetric(TreeNode root) { |
| 14 | /* if root node of tree itself is null, then it's symmetric */ |
| 15 | if(root==null) |
| 16 | return true; |
| 17 | return checkMirror(root.left, root.right); |
| 18 | } |
| 19 | public boolean checkMirror(TreeNode lt, TreeNode rt){ |
| 20 | /* if root's left and root's right both are null, is then that subtree is symmetric */ |
| 21 | if(lt==null && rt==null) |
nothing calls this directly
no test coverage detected