代码改变世界

[LeetCode] 951. Flip Equivalent Binary Trees_Medium tag: DFS, divide and conquer

2021-08-21 21:00  Johnson_强生仔仔  阅读(26)  评论(0编辑  收藏  举报
For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and right child subtrees. A binary tree X is flip e