Invert Binary Tree
-
[LeetCode] 226. Invert Binary TreeLeetCode 2021. 10. 26. 11:11
https://leetcode.com/problems/invert-binary-tree/ Invert Binary 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 Invert Binary Tree - Easy Invert Binary Tree 기존에 주어진 이진트리에서 모든 왼쪽 자식 노드들과 모든 오른쪽 자식 노드들의 위치를 바꿔줘야한다. node를 인자로 받아 node를 반환하는 run이라는 메소드를 만들어 해당 node가 NULL이 아닐때, 왼쪽..