https://leetcode.com/problems/symmetric-tree/ Symmetric Tree - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 트리가 가운데 세로를 기준으로 대칭형인가 판별하는 문제인데 요약하자면 왼쪽의 왼쪽과 오른쪽의 오른쪽이 같아야 하고, 왼쪽의 오른쪽과 오른쪽의 왼쪽이 같아야 한다. class Solution { public: bool compareSubTree(TreeNode* left, TreeNode* right) { ..