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
- Stack
- 백준
- 프로그래머스
- index of
- 오름차순 정렬
- 스프링부트 도커로 배포
- 버퍼
- SWEA
- 프로그래머스 자바
- 프로그래머스 문자열 정렬
- 스프링부트 도커
- Programmers
- 스택
- 큐
- 알고리즘
- Lv1
- 자바
- java
- lv2
- StringTokenizer
- 클라이언트
- 삼각형의 완성조건
- 스프링부트 도커 배포
- 문자열
- lv0
- 백준 N과 M 자바
- Queue
- 이진수 변환
- 프로그래머스 풀이
- COS Pro
Archives
- Today
- Total
mun dev
[HackerRank] Weather Observation Station 8 오라클 풀이 본문
문제링크
Weather Observation Station 8 | HackerRank
Query CITY names that start AND end with vowels.
www.hackerrank.com
풀이
도시 이름이 모음으로 시작하지 않고, 모음으로 끝나지 않는 문제의 조건에 따라
like함수를 사용해 풀이하면 된다.
코드
select distinct city
from station
where (upper(city) like 'A%'
or upper(city) like 'E%'
or upper(city) like 'I%'
or upper(city) like 'O%'
or upper(city) like 'U%')
and
(upper(city) like '%A'
or upper(city) like '%E'
or upper(city) like '%I'
or upper(city) like '%O'
or upper(city) like '%U');
'알고리즘 > HackerRank' 카테고리의 다른 글
[HackerRank] Weather Observation Station 11 오라클 풀이 (0) | 2024.01.29 |
---|---|
[HackerRank] Weather Observation Station 9 오라클 풀이 (0) | 2024.01.29 |
[HackerRank] Weather Observation Station 7 오라클 풀이 (0) | 2024.01.29 |
[HackerRank] Weather Observation Station 5 오라클 풀이 (0) | 2024.01.29 |
[HackerRank] Occupations 오라클 풀이 (0) | 2024.01.29 |