본문 바로가기
728x90

tree4

[99클럽] 99클럽 코테 스터디 14일차 TIL + Tree, DFS 이전글  👈[99클럽] 99클럽 코테 스터디 13일차 TIL + Tree & DFSJava | Beginner🗝 오늘의 학습 키워드 : Tree Binary Tree DFS; Depth-First Search📚 공부한 내용 본인의 언어로 정리하기[LeetCode | Java | DFS  문제 풀이] 226. Invert Binary Tree - Solution with DFS⌛ 오늘의 회고 오늘 푼 Java | 비기너 문제는 주어진 트리를 반전하는 문제였다. left노드와 right노드의 TreeNode만 바꿔주면 되는 것이라 많이 어렵지 않았다. 이번주에 Binary Tree와 DFS 개념 정리를 못한 것이 너무 아쉽다.💥 오늘 만난 문제 & 나의 시도 💦 & 해결 방법 👍📚 공부한 내용.. 2024. 6. 2.
[LeetCode | Java | Tree 문제 풀이] 2331. Evaluate Boolean Binary Tree - Solution with DFS 99클럽 | 비기너🌲 2331. Evaluate Boolean Binary Tree🏷 Topic : Tree Binary Tree DFS; Depth-First SearchEasyYou are given the root of a full binary tree with the following properties:Leaf nodes have either the value 0 or 1, where 0 represents False and 1 represents True.Non-leaf nodes have either the value 2 or 3, where 2 represents the boolean OR and 3 represents the boolean AND.The evaluation of a n.. 2024. 6. 1.
[LeetCode | Java | Tree 문제 풀이] 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree 99클럽 | Begginer🐾 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree🏷 Topic : Tree Binary Tree BFS DFSEasyGiven two binary trees original and cloned and given a reference to a node target in the original tree.The cloned tree is a copy of the original tree.Return a reference to the same node in the cloned tree.Note that you are not allowed to change any of the two trees or .. 2024. 5. 31.
[Java 봐 | 자료 구조] 트리(Tree) 개념 정리 1. 트리(Tree)비선형 구조 중 하나데이터를 계층적으로 구조화 하여 저장하는 자료 구조노드(Node)들과 노드들을 연결하는 링크(Link)들로 구성됨.root, branch, leaf가 연결되어 있다.central node, structural node, sub-node가 edge를 통해 연결되어 있다.노드(node)들 간에 계층적인 관계를 가지고 있다.재귀 구조(Recursive Structure)를 형성 각 노드는 여러 개의 자식 노드(child node)를 가질 수 있다.그리고 이러한 자식 노드(child node) 또한 자식 노드(child node)를 가질 수 있다.루트 노드(root node)와 0개 이상의 하위 트리(sub-tree)로 구성된다. 용어> 편의상 노드의 높이(height.. 2024. 5. 30.
728x90


Top