mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-06 16:55:17 -04:00
Update is_tree_symmetric.py
This commit is contained in:
parent
93c8e2abf7
commit
d5089d5b0e
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
# author: bt3gl
|
||||
|
||||
def is_symmetrical(root: Optional[TreeNode]) -> bool:
|
||||
|
||||
stack = [(root, root)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue