Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- java
- 문자열
- lv2
- SWEA
- 오름차순 정렬
- 스프링부트 도커로 배포
- 알고리즘
- Queue
- 스프링부트 도커
- 자바
- 프로그래머스 자바
- lv0
- 스프링부트 도커 배포
- 프로그래머스 풀이
- 클라이언트
- index of
- 이진수 변환
- 삼각형의 완성조건
- StringTokenizer
- 스택
- COS Pro
- 프로그래머스
- Programmers
- 큐
- 버퍼
- Stack
- Lv1
- 백준
- 백준 N과 M 자바
- 프로그래머스 문자열 정렬
Archives
- Today
- Total
목록Binary Tree Nodes 풀이 (1)
mun dev
[HackerRank] Binary Tree Nodes 오라클 풀이
문제링크 Binary Tree Nodes | HackerRank Write a query to find the node type of BST ordered by the value of the node. www.hackerrank.com 풀이 세 개의 케이스로 나누어서 생각하면 수월하게 풀이할 수 있다. p가 null이라면 Root n과 p가 같다면 Inner 모두 아닌 경우라면 Leaf 코드 select N, (case when p is null then 'Root' when exists (select p from BST T where B.N = T.P) then 'Inner' else 'Leaf' end) from BST B order by N;
알고리즘/HackerRank
2024. 1. 26. 13:15