-- select CITY from STATION where CITY regexp '^[^aeiouAEIOU]$'
-- ~ no response on stdout ~
-- select CITY from STATION where CITY regexp '^[^aeiouAEIOU][^aeiouAEIOU]$'
-- ~ no response on stdout ~
select distinct CITY from STATION
where CITY regexp '^[^aeiouAEIOU]'
or CITY regexp '[^aeiouAEIOU]$'
처음에는 저 코드 말고는 떠올리기 힘들었다.
두 번째는 어떻게든 짜낸 코드다.
세 번째는 문제를 다시 읽어보니 or로 풀어야하는 것을 깨닳고 작성했다.
근 이틀 정도 프로그래머스 알고리즘을 풀면서, 내 코드와 다른 사람들의 코드를 비교하고 있는데
hackerrank에는 이러한 기능이 활발하지 않은 것 같아서 아쉬웠다.