일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 다익스트라
- 가상메모리 관리
- python
- 그리디
- 스택
- 백준
- level1
- 프로그래머스
- programmers
- MYSQL
- 에라스토테네스의 체
- level2
- 힙
- DP
- 브루트포스
- 다이나믹 프로그래밍
- level3
- 딕셔너리
- 수학
- 파이썬
- 구현
- 코딩테스트
- 가상메모리
- level0
- N과M
- 재귀
- 운영체제
- BFS
- BOJ
- dfs
- Today
- Total
목록level1 (12)
동캄의 코딩도장
https://school.programmers.co.kr/learn/courses/30/lessons/138477 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #프로그래머스 level1 명예의 전당 (1) def solution(k, score): answer = [] lst=[] if k
#프로그래머스 level1 추억 점수 from collections import defaultdict def solution(name, yearning, photo): answer = [] dic=defaultdict(int) for i in range(len(name)): dic[name[i]]=yearning[i] for list_ in photo: cnt=0 for name_ in list_: cnt+=dic[name_] answer.append(cnt) return answer 딕셔너리를 이용하였다.
# 프로그래머스 level1 과일 장수 def solution(k, m, score): answer = 0 score.sort(reverse=True) for i in range(m-1,len(score),m): answer+=score[i]*m return answer
https://school.programmers.co.kr/learn/courses/30/lessons/131705 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr # 프로그래머스 level1 삼총사 from itertools import combinations def solution(number): answer = 0 combi=combinations(number,3) for c in combi: if sum(c)==0: answer+=1 return answer combinations 라이브러리를 이용하여 해결하였다.
https://school.programmers.co.kr/learn/courses/30/lessons/150370 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr # 프로그래머스 level1 개인정보 수집 유효기간 from collections import defaultdict def solution(today, terms, privacies): answer = [] today=list(map(int,today.split('.'))) today_year=today[0] today_month=today[1] today_day=today[2] today_da..
https://school.programmers.co.kr/learn/courses/30/lessons/161990 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #프로그래머스 level1 바탕화면 정리 def solution(wallpaper): answer = [] R=len(wallpaper) C=len(wallpaper[0]) left=C right=0 up=R down=0 for i in range(R): for j in range(C): if wallpaper[i][j]=='#': if left>j: left=j if righti: up=i i..