일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- computer science
- 혼자 공부하는 SQL
- 미래혁신대전
- 문제풀이
- Stored Procedure
- mysql
- 엘런 튜링
- SQL
- 2023
- Programmers
- 퓨처셀프
- FastAPI
- 다시 왔다!
- 컴퓨터 과학이 여는 세계
- CS
- Django
- 멀티스레딩
- MVT
- 덴드로그램
- Recommender system
- 프로그래머스
- 백준
- PCA
- 한 권으로 읽는 컴퓨터 구조와 프로그래밍
- JP Study
- 1463
- Til
- WIL
- stored function
- 선형대수
- Today
- Total
목록Django (4)
Growth Hoon

오전 프로그래머스 문제 - 옹알이(2) github link def solution(babbling): answer = 0 speak_word = ['aya', 'ye','woo','ma'] count = 0 for word in babbling: pre_speak_word = '' # 연속 된 단어를 방지 하기 위함 target_word = "" # 현재 말하는 단어를 저장 for alpha in word: target_word += alpha if target_word in speak_word: # target_word가 speak_word에 있는지? if pre_speak_word == target_word: # 이전에 말한 단어랑 같은지 ? break # count 할 수 없음 ! else: # ..

프로그래머스 문제 - 과일 장수 github link ## 과일 장수 # 예를 들어, k = 3, m = 4, 사과 7개의 점수가 [1, 2, 3, 1, 2, 3, 1]이라면, # 다음과 같이 [2, 3, 2, 3]으로 구성된 사과 상자 1개를 만들어 판매하여 최대 이익을 얻을 수 있습니다. ## 이익 계산식 : (최저 사과 점수) x (한 상자에 담긴 사과 개수) x (상자의 개수) = 2 x 4 x 1 = 8 def solution(k, m, score): answer = 0 # 만들 수 있는 상자의 수 계산 max_box = len(score) // m # 정렬해서 m만큼 나눠주면 되지 않을까? score.sort(reverse = True) s_idx = 0 for _ in range(max_bo..

프로그래머스 - 2016년 github link def solution(a, b): answer = '' ## 목 - 금 - 토 - 일 - 월 - 화 - 수 (순서로 설정함) => index 1번이 1월 1일로 설정 하려고 day_of_week = ['THU','FRI','SAT','SUN','MON','TUE','WED'] day_dict = { '31' : [1,3,5,7,8,10,12], '29' : [2], '30' : [4,6,9,11] } total_day = 0 for month in range(1,a): if month in day_dict['31']: total_day += (31) elif month in day_dict['30']: total_day += (30) else: total..
Django 연습 github에 올려 두었다 ! https://github.com/JSeHoone/TIL/tree/main/django_practice - 이후에 다시 볼 때 History 확인해보자 ! Programmers 문제 - 카드 뭉치 # 카드 뭉치 def solution(cards1, cards2, goal): answer = 'Yes' for word in goal: if (len(cards2) == 0) & (len(cards1) != 0): # cards2번 리스트가 빈값이 된 경우 if word == cards1[0]: del cards1[0] else: answer = 'No' break elif (len(cards1) == 0) & (len(cards2) != 0): # cards1..