| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 코딩테스트연습
- 데이터분석
- forecast
- eda
- Inventory Optimization
- ModelCheckPoint
- oracle
- ABC Analysis
- pandas profiling
- 프로그래머스
- HackerRank
- Gaimification
- SQL
- 파이썬
- Product Demand
- SKU Consolidation
- 당신의 인생이 왜 힘들지 않아야 한다고 생각하십니까
- ProfileReport
- tensorflow
- leetcode
- kaggle
- 딥러닝
- Labor Management System
- 웨어하우스 보관 최적화
- 신경쓰기의 기술
- 피그마인디언
- MySQL
- 코딩테스트
- MS SQL Server
- TensorFlowGPU
- Today
- Total
목록전체 글 (177)
오늘도 배운다
문제 수많은 마라톤 선수들이 마라톤에 참여하였습니다. 단 한 명의 선수를 제외하고는 모든 선수가 마라톤을 완주하였습니다. 마라톤에 참여한 선수들의 이름이 담긴 배열 participant와 완주한 선수들의 이름이 담긴 배열 completion이 주어질 때, 완주하지 못한 선수의 이름을 return 하도록 solution 함수를 작성해주세요. 제출답안 def solution(participant, completion): participant, completion = sorted(participant), sorted(completion) i= 0 while(1): if participant[i] != completion[i]: answer = participant[i] break i+=1 if i == len..
문제 자연수 n을 뒤집어 각 자리 숫자를 원소로 가지는 배열 형태로 리턴해주세요. 예를들어 n이 12345이면 [5,4,3,2,1]을 리턴합니다. 제출답안 def solution(n): reverse = str(n)[::-1] answer = [int(letter) for letter in reverse] return answer 문제 바로가기
문제 Write a query identifying the type of each record in the TRIANGLES table using its three side lengths. Output one of the following statements for each record in the table: - Equilateral: It's a triangle with sides of equal length. - Isosceles: It's a triangle with sides of equal length. - Scalene: It's a triangle with sides of differing lengths. - Not A Triangle: The given values of A, B, and..
문제 정수 n을 입력받아 n의 약수를 모두 더한 값을 리턴하는 함수, solution을 완성해주세요. 제출답안 def solution(n): answer = sum([num for num in range(1, n+1) if not n % num]) return answer 제출 후 개선답안 검사해야할 경우의 수 범위를 줄일 수 있다! 효율적인 약수 구하기 알고리즘 조사결과는 다음과 같다 1. 약수를 찾을 수 n의 제곱근 사이의 정수로 한정하여 약수를 찾는다 2. 나온 수로 n을 나눈 숫자들도 약수가 된다 정리하면, 1/2번 과정에서 구한 수들이 n의 약수 경우의 수가 n번에서 엄청나게 줄어들게 됨 다만, 1, 2번의 결과에 교집합이 발생하는 것으로 보임. 따라서, 1,2 번의 결과를 합집합 후 합하였음 ..
문제 1937년 Collatz란 사람에 의해 제기된 이 추측은, 주어진 수가 1이 될 때까지 다음 작업을 반복하면, 모든 수를 1로 만들 수 있다는 추측입니다. 작업은 다음과 같습니다. 1-1. 입력된 수가 짝수라면 2로 나눕니다. 1-2. 입력된 수가 홀수라면 3을 곱하고 1을 더합니다. 2. 결과로 나온 수에 같은 작업을 1이 될 때까지 반복합니다. 예를 들어, 주어진 수가 6이라면 6 → 3 → 10 → 5 → 16 → 8 → 4 → 2 → 1 이 되어 총 8번 만에 1이 됩니다. 위 작업을 몇 번이나 반복해야 하는지 반환하는 함수, solution을 완성해 주세요. 단, 주어진 수가 1인 경우에는 0을, 작업을 500번 반복할 때까지 1이 되지 않는다면 –1을 반환해 주세요. 제출답안 def so..
문제 문자열로 구성된 리스트 strings와, 정수 n이 주어졌을 때, 각 문자열의 인덱스 n번째 글자를 기준으로 오름차순 정렬하려 합니다. 예를 들어 strings가 ["sun", "bed", "car"]이고 n이 1이면 각 단어의 인덱스 1의 문자 "u", "e", "a"로 strings를 정렬합니다. 제출답안 def solution(strings, n): answer = sorted(strings, key= lambda x: (x[n:n+1], x)) return answer 문제 바로가기
문제 Query the Name of any student in STUDENTS who scored higher than 75 Marks. Order your output by the last three characters of each name. If two or more students both have names ending in the same last three characters (i.e.: Bobby, Robby, etc.), secondary sort them by ascending ID. Input Format The STUDENTS table is described as follows: The Name column only contains uppercase (A-Z) and lowerc..
문제 Query the list of CITY names from STATION that do not start with vowels and do not end with vowels. Your result cannot contain duplicates. Input Format The STATION table is described as follows: 제출답안(MySQL) SELECT DISTINCT(city) FROM station WHERE city REGEXP '^[^aeiou].*[^aeiou]$' 풀이(MySQL) 더보기 MySQL 정규표현식 참고자료 문제 바로가기(MySQL)