leetcode 101. Symmetric Tree BFS廣度優先遍歷+DFS深度優先遍歷

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).java For example, this binary tree [1,2,2,3,4,4,3] is symmetric:ios 1 / \ 2 2 / \ / \ 3 4 4 3 But the foll
相關文章
相關標籤/搜索