interview_python
interview_python copied to clipboard
style: code style
why u so diao ?
def isSameTree(p, q):
if p and q:
return p.val == q.val and isSameTree(p.left,q.left) and isSameTree(p.right,q.right)
return p is None and q is None
ha~