본문 바로가기
반응형

전체 글167

[LeetCode 해석 및 풀이] 102. Binary Tree Level Order Traversal(이진 트리 수준 순서 탐색) LeetCode 문제 해석 및 풀이 방법문제 102. Binary Tree Level Order Traversal(이진 트리 수준 순서 탐색)난이도 : 중간🟡 바로가기 문제 설명영문Given the root of a binary tree, return the level order traversal of its nodes' values. (i.e., from left to right, level by level). 한글이진 트리의 root 주어지면 해당 노드 값의 레벨 순서 순회를 반환합니다. (즉, 왼쪽에서 오른쪽으로, 레벨별로). 제한조건The number of nodes in the tree is in the range [0, 2000].-1000  입출력 예입력출력root = [3,9,20,nul.. 2024. 7. 25.
[LeetCode 해석 및 풀이] 235. Lowest Common Ancestor of a Binary Search Tree(이진 검색 트리의 최하위 공통 조상) LeetCode 문제 해석 및 풀이 방법문제 235. Lowest Common Ancestor of a Binary Search Tree(이진 검색 트리의 최하위 공통 조상)난이도 : 중간🟡 바로가기 문제 설명영문Given a binary search tree (BST), find the lowest common ancestor (LCA) node of two given nodes in the BST. According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes p and q as the lowest node in T that has both p and q as descend.. 2024. 7. 24.
Leetcode To Blogpost : 리트코드 문제를 블로그 글로 바꾸기 요약📙 프로젝트명 : Leetcode To Blogpost⚙️ 주요 기능 : 리트코드의 문제를 블로그 포스트로 올릴 HTML 문서로 변환함🚩 목적 : 블로그 글 작성을 쉽게 하기 위해📆 제작 기한 : 2024년 7월 23일 ~ 7월 24일 (2일간)🛠️ 사용 툴 : HTML, CSS, JavaScript🔗 GitHub 링크 : https://github.com/dobbyjang0/LeetcodeToBlogpost 만들게 된 계기 '🖥️ 문제 풀이/리트코드(Leetcode)' 카테고리의 글 목록내가 보려고 정리해놓습니다programming4myself.tistory.comLeetCode의 문제를 풀면서 블로그에 해법을 쓰고 있었는데, 문제를 옮기는데 시간이 너무 오래 걸렸었다. 따라서 문제 내용.. 2024. 7. 24.
[LeetCode 해석 및 풀이] 572. Subtree of Another Tree (다른 트리의 서브트리) LeetCode 문제 해석 및 풀이 방법 문제 572. Subtree of Another Tree (다른 트리의 서브트리)바로가기 문제 설명영문Given 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 a.. 2024. 7. 21.
[LeetCode 해석 및 풀이] 100. Same Tree (같은 트리) LeetCode 문제 해석 및 풀이 방법 문제 100. Same Tree (같은 트리)바로가기 문제 설명영문Given 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. 한글두 개의 이진 트리의 뿌리 p, q가 주어졌을 때 두 개의 트리가 같은지 아닌지 체크하는 함수를 작성하시오, 두 개의 이진트리는 구조적으로 동일하고 노드가 동일한 값을 갖는 경우 동일한 것으로 간주됩니다. 제한조건The n.. 2024. 7. 19.
[LeetCode 해석 및 풀이] 110. Balanced Binary Tree (균형 잡힌 이진트리) LeetCode 문제 해석 및 풀이 방법 문제 110. Balanced Binary Tree (균형 잡힌 이진트리)바로가기 문제 설명영문Given 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. 한글이진 트리가 주어지면, 높이-균형이 잡혀있는지 결정하십시오 높이-균형 이진트리는 모든 노드의 자식 트리의 높이차가 1보다 크지 않는 트리를 뜻합니다. 제한조건The number of nodes in the tree is in the ra.. 2024. 7. 18.
반응형