(x: Node, y: Node, level: int = None)
| 293 | |
| 294 | |
| 295 | def is_equal(x: Node, y: Node, level: int = None) -> bool: |
| 296 | if x == y: |
| 297 | return True |
| 298 | if x._val is None or y._val is None: |
| 299 | return False |
| 300 | if x.val != y.val: |
| 301 | return False |
| 302 | return is_equiv(x._val, y._val, level) |
| 303 | |
| 304 | |
| 305 | def bfs_backtrack( |
nothing calls this directly
no test coverage detected