일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- python
- dfs
- N과M
- 재귀
- programmers
- 다이나믹 프로그래밍
- 힙
- DP
- 프로그래머스
- level1
- 구현
- 가상메모리
- 백준
- BFS
- 스택
- 수학
- MYSQL
- 딕셔너리
- level0
- 가상메모리 관리
- level2
- 코딩테스트
- 다익스트라
- BOJ
- 파이썬
- level3
- 브루트포스
- dict
- 운영체제
- 그리디
- Today
- Total
목록프로그래머스 (123)
동캄의 코딩도장
https://programmers.co.kr/learn/courses/30/lessons/42888 코딩테스트 연습 - 오픈채팅방 오픈채팅방 카카오톡 오픈채팅방에서는 친구가 아닌 사람들과 대화를 할 수 있는데, 본래 닉네임이 아닌 가상의 닉네임을 사용하여 채팅방에 들어갈 수 있다. 신입사원인 김크루는 카카오톡 오 programmers.co.kr #프로그래머스 오픈채팅방 def solution(record): answer = [] lst={} prompt=[] for line in record: s=list(map(str,line.split())) if s[0]!='Leave': lst[s[1]]=s[2] prompt.append(s) for line in prompt: if line[0]=='Enter..
https://programmers.co.kr/learn/courses/30/lessons/42578 코딩테스트 연습 - 위장 programmers.co.kr #프로그래머스 위장 def solution(clothes): answer = 1 lst={} for clothe in clothes: if clothe[1] in lst: lst[clothe[1]]+=1 else: lst[clothe[1]]=1 for val in lst.values(): answer*=(val+1) return (answer-1) 세트( '{}' )을 이용하여 문제를 해결하였다. def solution(clothes): from collections import Counter from functools import reduce c..
https://programmers.co.kr/learn/courses/30/lessons/42842 코딩테스트 연습 - 카펫 Leo는 카펫을 사러 갔다가 아래 그림과 같이 중앙에는 노란색으로 칠해져 있고 테두리 1줄은 갈색으로 칠해져 있는 격자 모양 카펫을 봤습니다. Leo는 집으로 돌아와서 아까 본 카펫의 노란색과 programmers.co.kr 간단한 수학문제이다. #프로그래머스 카펫 def solution(brown, yellow): for h in range(1,yellow+1): if yellow%h==0: w=yellow//h if w
https://programmers.co.kr/learn/courses/30/lessons/60057 코딩테스트 연습 - 문자열 압축 데이터 처리 전문가가 되고 싶은 "어피치"는 문자열을 압축하는 방법에 대해 공부를 하고 있습니다. 최근에 대량의 데이터 처리를 위한 간단한 비손실 압축 방법에 대해 공부를 하고 있는데, 문 programmers.co.kr #프로그래머스 문자열 압축 def solution(s): answer = 0 for i in range(1,(len(s)//2)+1): cnt=1 lst=[] j=0 previous='' while (j+i)1: lst.append(cnt-1) gain=0 for k in range(len(lst)): gain+=lst[k]*i-len(str(lst[k]..
https://programmers.co.kr/learn/courses/30/lessons/49994 코딩테스트 연습 - 방문 길이 programmers.co.kr #프로그래머스 방문 길이 def solution(dirs): answer = 0 link=[[[[0]*11 for _ in range(11)] for _ in range(11)] for _ in range(11)] x=5 y=5 for dir in dirs: if dir=='U' and y0: if (link[x][y][x][y-1]!=1) and (link[x][y-1][x][y]!=1): answer+=1 link[x][y][x][y-1]=1 link[x][y-1][x][y]=1 y-=1 elif dir=='L' and x>0: if (l..
https://programmers.co.kr/learn/courses/30/lessons/17686 코딩테스트 연습 - [3차] 파일명 정렬 파일명 정렬 세 차례의 코딩 테스트와 두 차례의 면접이라는 기나긴 블라인드 공채를 무사히 통과해 카카오에 입사한 무지는 파일 저장소 서버 관리를 맡게 되었다. 저장소 서버에는 프로그램 programmers.co.kr #프로그래머스 [3차] 파일명 정렬 def solution(files): answer = [] lst=[] for file in files: for i in range(len(file)): if file[i].isdigit(): break for j in range(5): if (i+j)