Python coding challenge - [Depth First Search (DFS) for Graph and Tree] バイナリツリーが左右対称であるかを確かめよう!
🔒
Published 2022年8月31日16:06 by mootaro23
Python Coding Challenge - How will you validate a symmetric binary tree?
(Python コーディングチャレンジ [バイナリツリーが左右対称であるかを確かめよう!] 編)
方法は何種類か考えられますが DFS アルゴリズムを利用して解くことも可能です。
問題:
与えられたバイナリツリーが左右対称であるかを検証するプロ…