| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 파이썬
- tensorflow
- 데이터분석
- SQL
- HackerRank
- ABC Analysis
- MySQL
- TensorFlowGPU
- 딥러닝
- 당신의 인생이 왜 힘들지 않아야 한다고 생각하십니까
- 코딩테스트
- 프로그래머스
- leetcode
- pandas profiling
- oracle
- forecast
- Gaimification
- Inventory Optimization
- 코딩테스트연습
- 신경쓰기의 기술
- Labor Management System
- ProfileReport
- 피그마인디언
- eda
- 웨어하우스 보관 최적화
- ModelCheckPoint
- SKU Consolidation
- MS SQL Server
- kaggle
- Product Demand
- Today
- Total
목록전체 글 (177)
오늘도 배운다
문제 Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates. Input FormatThe STATION table is described as follows: 제출답안(MySQL) SELECT DISTINCT(city) FROM station WHERE city REGEXP 'a$|e$|i$|o$|u$' SELECT DISTINCT(city) FROM station WHERE city REGEXP 'a$|e$|i$|o$|u$' 풀이(MySQL) 더보기 MySQL 정규표현식 사용 참고자료 - https://www.geeksforgeeks.org/mysql..
문제 Query the list of CITY names starting with vowels (i.e., a, e, i, o, or u) from STATION. Your result cannot contain duplicates. Input FormatThe STATION table is described as follows: 제출답안(MySQL) SELECT DISTINCT(city) FROM station WHERE city REGEXP '^a|^e|^i|^o|^u' 풀이(MySQL) 더보기 MySQL 정규식 적용 참고자료 - https://www.geeksforgeeks.org/mysql-regular-expressions-regexp/ 개선답안(MySQL) SELECT DISTINCT(city..
문제 단어 s의 가운데 글자를 반환하는 함수, solution을 만들어 보세요. 단어의 길이가 짝수라면 가운데 두글자를 반환하면 됩니다. 제출답안 def solution(s): l = len(s) # 인풋 str의 전체 길이 idx_ctr = int(l/2) # 가운데글자 인덱스 answer = s[idx_ctr-1:idx_ctr+1] if l%2 == 0 else s[idx_ctr:idx_ctr+1] return answer 가장 많은 좋아요를 받은 풀이 가장 많은 좋아요를 받은 풀이 이해하는데도 시간이 꽤나 걸렸다. 대단한 사람이 정말 많은 듯 하다 def string_middle(s): return s[(len(s)-1)//2:len(s)//2+1] 문제 바로가기
문제 0부터 9까지의 숫자 중 일부가 들어있는 정수 배열 numbers가 매개변수로 주어집니다. numbers에서 찾을 수 없는 0부터 9까지의 숫자를 모두 찾아 더한 수를 return 하도록 solution 함수를 완성해주세요. 제출답안 def solution(numbers): # 변수 numbers에 없는 정수의 리스트 ls_not_in = [num for num in range(0, 10) if num not in numbers] # 없는 수의 합 answer = sum(ls_not_in) return answer 제출 후 개선답안 "문제에서 원하는 최종 내용에서 한 번 더 최적화할 수 있다" 문제에서 원하는 것은 '없는 숫자들의 합' 없는 숫자들의 합 == SUM(0~9) - 주어진 수의 합 de..
문제 네오와 프로도가 숫자놀이를 하고 있습니다. 네오가 프로도에게 숫자를 건넬 때 일부 자릿수를 영단어로 바꾼 카드를 건네주면 프로도는 원래 숫자를 찾는 게임입니다.다음은 숫자의 일부 자릿수를 영단어로 바꾸는 예시입니다. 1478 → "one4seveneight" 234567 → "23four5six7" 10203 → "1zerotwozero3" 이렇게 숫자의 일부 자릿수가 영단어로 바뀌어졌거나, 혹은 바뀌지 않고 그대로인 문자열 s가 매개변수로 주어집니다. s가 의미하는 원래 숫자를 return 하도록 solution 함수를 완성해주세요. 제출답안 def solution(s): text_to_num = {'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, '..
문제 Query the two cities in STATION with the shortest and longest CITY names, as well as their respective lengths (i.e.: number of characters in the name). If there is more than one smallest or largest city, choose the one that comes first when ordered alphabetically.The STATION table is described as follows: 제출답안(MySQL) (SELECT city, LENGTH(city) FROM station ORDER BY 2 DESC, 1 LIMIT 1) UNION (S..
문제 Find the difference between the total number of CITY entries in the table and the number of distinct CITY entries in the table.The STATION table is described as follows: 제출답안(MySQL) SELECT COUNT(city) - COUNT(DISTINCT(city)) FROM station 문제 바로가기(MySQL)
문제 Query a list of CITY names from STATION for cities that have an even ID number. Print the results in any order, but exclude duplicates from the answer.The STATION table is described as follows: 제출답안(MySQL) SELECT DISTINCT(city) FROM station WHERE id%2 = 0 문제 바로가기(MySQL)