Skip to content

Commit 30ca4ae

Browse files
jesiligoswami-rahul
authored andcommitted
Update is_symmetric.py (keon#396)
1 parent 3f9aa45 commit 30ca4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/tree/is_symmetric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def is_symmetric_iterative(root):
4646
return False
4747
if left.val == right.val:
4848
stack.append([left.left, right.right])
49-
stack.append([left.right, right.right])
49+
stack.append([left.right, right.left])
5050
else:
5151
return False
5252
return True

0 commit comments

Comments
 (0)