原文:[LeetCode] 951. Flip Equivalent Binary Trees 翻轉等價二叉樹

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 Xisflip equivalentto a binary tree Y if and only if we can m ...

2020-07-02 15:00 0 881 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM