| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- programmers
- DP
- Java
- Lv. 1
- level 3
- Lv. 3
- bfs
- Python
- 깊이 우선 탐색
- 자바스크립트
- 동적계획법
- Lv. 0
- 파이썬
- group by
- join
- LEVEL 2
- javascript
- SQL
- Lv. 2
- dfs
- Baekjoon
- 소프티어
- 티스토리챌린지
- 너비 우선 탐색
- 백준
- Dynamic Programming
- SQL 고득점 KIT
- 프로그래머스
- softeer
- 오블완
- Today
- Total
목록HackerRank (11)
몸과 마음이 건전한 SW 개발자
문제 링크https://www.hackerrank.com/challenges/weather-observation-station-11/problem?isFullScreen=true Weather Observation Station 11 | HackerRankQuery a list of CITY names not starting or ending with vowels.www.hackerrank.com정답 코드select distinct city from station where city not like '[aeiou]%[aeiou]';풀이 과정city의 앞 문자가 a e i o u로 시작하지 않고 뒷 문자가 a e i o u로 끝나지 않고 라는 명제가 있다.'[^aeiou]%' and '%[^aeiou]'이..
문제 링크https://www.hackerrank.com/challenges/weather-observation-station-8/problem?isFullScreen=true Weather Observation Station 8 | HackerRankQuery CITY names that start AND end with vowels.www.hackerrank.com정답 코드select distinct city from station where city like '[aeiou]%[aeiou]';풀이 과정앞 뒤로 a e i o u가 있는 city를 찾는다.느낀점이 문제도 마찬가지로 city를 가공해서 풀 수도 있다.정규표현식을 사용해서 조금이라도 더 빠르게 성능을 향상시킬 수 있다.하지만 데이터 양이 적..
문제 링크https://www.hackerrank.com/challenges/weather-observation-station-7/problem?isFullScreen=true Weather Observation Station 7 | HackerRankQuery the list of CITY names ending with vowels (a, e, i, o, u) from STATION.www.hackerrank.com최적화 코드SELECT DISTINCT CITYFROM STATIONWHERE CITY LIKE '%[aeiou]';아쉬운 코드 (내코드)select distinct city from station where right(city, 1) in ('a', 'e', 'i', 'o', 'u');풀..
문제 링크https://www.hackerrank.com/challenges/weather-observation-station-5/problem?isFullScreen=true Weather Observation Station 5 | HackerRankWrite a query to print the shortest and longest length city name along with the length of the city names.www.hackerrank.com 정답 코드SET NOCOUNT ON;SELECT TOP 1 CITY, LEN(CITY)FROM STATIONORDER BY LEN(CITY) ASC, CITY ASC;SELECT TOP 1 CITY, LEN(CITY)FROM STATION..
문제 링크https://www.hackerrank.com/challenges/weather-observation-station-4/problem?isFullScreen=true Weather Observation Station 4 | HackerRankFind the number of duplicate CITY names in STATION.www.hackerrank.com정답 코드SET NOCOUNT ON;SELECT COUNT(CITY) - COUNT(DISTINCT CITY)FROM STATION;/*Enter your query here.Please append a semicolon ";" at the end of the query and enter your query in a single lin..