반응형 재귀2 199. Binary Tree Right Side View 199. Binary Tree Right Side View LeetCode - The World's Leading Online Programming Learning Platform 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 문제가 영어로 돼있어서 이상하게 문제를 풀다가 시간을 엄청 낭비했다. 가장 오른쪽 노드들만 모아서 보여주라는게 아니라 왼쪽노드든 오른쪽노드든 오른쪽에서 봤을때 보이는 노드들을 배열로 리턴하라는것이였다. 결국 왼쪽트리도 검색해야한다는것 노드 컨트롤하는 방법.. 2024. 2. 17. 104. Maximum Depth of Binary Tree 104. Maximum Depth of Binary Tree LeetCode - The World's Leading Online Programming Learning Platform 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 오늘도 도서관~ 딱보니까 이번문제는 바이너리 깊이를 재나보다~ 별거아닌것 같다 풀이시작 /** * Definition for a binary tree node. * function TreeNode(val, left, right) { * this.val .. 2024. 1. 24. 이전 1 다음 반응형