Skip to content

Commit

Permalink
Update is_symmetric.py (keon#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesili authored and goswami-rahul committed Sep 28, 2018
1 parent 3f9aa45 commit 30ca4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithms/tree/is_symmetric.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def is_symmetric_iterative(root):
return False
if left.val == right.val:
stack.append([left.left, right.right])
stack.append([left.right, right.right])
stack.append([left.right, right.left])
else:
return False
return True

0 comments on commit 30ca4ae

Please sign in to comment.