(self, p: TreeNode, q: TreeNode)
| 6 | |
| 7 | class Solution: |
| 8 | def isSameTree(self, p: TreeNode, q: TreeNode) -> bool: |
| 9 | if not p and not q: |
| 10 | return True |
| 11 | if not p or not q or p.val != q.val: |
| 12 | return False |
| 13 | return (self.isSameTree(p.left, q.left) and self.isSameTree(p.right, q.right)) |
nothing calls this directly
no outgoing calls
no test coverage detected