일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- 문제풀이
- 알고리즘
- 백준
- Database
- language
- 데이터베이스
- D3
- Programmers
- 운영체제
- 독서
- c++
- BOJ
- LeetCode
- 자료구조
- D2
- algorithm
- OS
- 법의학
- 재테크/투자
- cs
- swea
- network
- 네트워크
- algogritim
- 감상문
- SW Expert Academy
- 프로그래머스
- db
- Computer Science
- data structure
- Today
- Total
목록LeetCode (2)
선택은 나의 것
문제 LeetCode 515 : leetcode.com/problems/find-largest-value-in-each-tree-row/ Find Largest Value in Each Tree Row - 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 접근 주어진 트리의 레벨(깊이) 별로 가장 큰 값을 반환해주는 문제이다. DFS를 통해 트리를 탐색하며 레벨별로 큰 값을 만날 때마다 값을 갱신해준다. 코드 /** * Definition for a binary t..
문제 LeetCode 513 : leetcode.com/problems/find-bottom-left-tree-value/ Find Bottom Left Tree Value - 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 접근 트리의 마지막 행의 가장 왼쪽에 있는 노드를 구하는 문제이다. 가장 마지막 노드를 탐색하기 위해 DFS를 사용하여 깊이가 깊어질 때마다 매번 값을 갱신 시켜 주었다. 코드 /** * Definition for a binary tree n..