mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 12:16:14 -04:00
Update bt_is_same_trees.py
This commit is contained in:
parent
3606be45c1
commit
153e85ca03
@ -11,4 +11,4 @@ def is_same_trees(p, q):
|
||||
if (not p and q) or (not q and p) or p.val != q.val:
|
||||
return False
|
||||
|
||||
return self.is_same_trees(p.right, q.right) and self.is_same_trees(p.left, q.left)
|
||||
return is_same_trees(p.right, q.right) and is_same_trees(p.left, q.left)
|
||||
|
Loading…
x
Reference in New Issue
Block a user