반응형 분류 전체보기128 [DSA][Trees] 06. Subtree of Another Tree LeetCode 572 06. Subtree of Another TreeGiven the roots of two binary trees root and subRoot, return true if there is a subtree of root with the same structure and node values of subRoot and false otherwise.A subtree of a binary tree tree is a tree that consists of a node in tree and all of this node's descendants.The tree tree could also be considered as a subtree of itself. [질문하기]- 노드의 값에 중복이.. 2025. 7. 15. 친절한 블렌더 - [LV.0] 입문 필수 우연한 계기로 3D 프린터를 접하고 나서 꽤 오랫동안 Fusion 360을 사용했었다.당시에는 기초적인 것만 모델링할 수 있어서, 복잡한 피규어나 모델들은 주로 Thingiverse 같은 사이트에서 다운받아 썼다. 그 이후로 3D 모델링에 계속 관심이 있었는데, 그러다 Three.js로 만든 프로젝트들을 보게 됐다. 3D Software를 능숙하게 다루면 원하는 부품을 3D 프린터로 뽑을 수도, VR 게임을 만들거나 Three.js를 활용해 웹에서 3D 인터랙티브 사이트를 제작할 수도 있으며, 애니메이션 작업도 가능해서 여러 방면에서 활용도가 높겠다는 생각이 들었다. 그래서 블렌더를 익혀보기로 마음을 먹었다. 유튜브에서 블렌더로 영상을 제작하는 CODEMOD님의 채널을 보게 되었고, 인프런에 친절하게 설.. 2025. 7. 14. [DSA][Trees] 05. Same Tree LeetCode 100 05. Same TreeGiven the roots of two binary trees p and q, write a function to check if they are the same or not.Two binary trees are considered the same if they are structurally identical, and the nodes have the same value. [질문하기]- 구조적으로 같다는 것은 자식 노드의 null 위치까지도 동일해야 한다는 의미인가요? [아이디어]- DFS를 사용하여 재귀적으로 same 여부를 판단하자. [풀이 1] Depth First Searchclass Solution: def isSameTree(self.. 2025. 7. 14. [DSA][Trees] 04. Balanced Binary Tree LeetCode 110 04. Balanced Binary TreeGiven a binary tree, determine if it is height-balanced.A height-balanced binary tree is a binary tree in which the depth of the two subtrees of every node never differs by more than one. [질문하기]- 빈 트리(루트가 None)인 경우 결과는 true로 처리하나요? [아이디어]- DFS를 사용하여 재귀적으로 깊이와 balance 여부를 판단하자. [풀이 1] Depth First Searchclass Solution: def isBalanced(self, root: Optional[.. 2025. 7. 13. 이전 1 ··· 9 10 11 12 13 14 15 ··· 32 다음