[LeetCode 해석 및 풀이] 226. Invert Binary Tree (이진 트리 뒤집기)
LeetCode 문제 해석 및 풀이 방법 문제 226. Invert Binary Tree(이진 트리 뒤집기)바로가기 문제 설명영문Given the root of a binary tree, invert the tree, and return its root. 한글이진트리의 root가 주어지면, 트리를 뒤집고 root를 반환하십시 제한조건The number of nodes in the tree is in the range [0, 100].-100 입출력 예입력출력root = [4,2,7,1,3,6,9][4,7,2,9,6,3,1]root = [2,1,3][2,3,1]root = [][] 해답 및 해설파이썬 (Python)class Solution: def invertTree(self, root: Opt..
2024. 7. 4.