官方詳解解釋的很是優秀了 我就不貼代碼了ui
反正思路就是遞歸code
https://leetcode-cn.com/problems/symmetric-tree/solution/dui-cheng-er-cha-shu-by-leetcode-solution/blog