일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- level3
- 코딩테스트
- 스택
- python
- dfs
- 다이나믹 프로그래밍
- 가상메모리 관리
- level1
- MYSQL
- dict
- 힙
- 수학
- 가상메모리
- 운영체제
- BFS
- 백준
- 재귀
- 다익스트라
- DP
- 구현
- 파이썬
- N과M
- programmers
- 그리디
- 브루트포스
- level2
- 프로그래머스
- level0
- BOJ
- 딕셔너리
- Today
- Total
목록코테 (297)
동캄의 코딩도장
https://school.programmers.co.kr/learn/courses/30/lessons/155652 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(s, skip, index): answer = '' skip_ord=[] # skip알파벳의 아스키코드 번호 저장 for skip_alpha in skip: skip_ord.append(ord(skip_alpha)) # skip의 문자열을 아스키코드로 변환 후 skip_ord에 추가 for val in s: # 각 문자열에 대해서 i=index order=ord(val) ..
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/160586 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #프로그래머스 level1 대충 만든 자판 from collections import defaultdict def solution(keymap, targets): answer = [] best=defaultdict(int) for key in keymap: for i in range(len(key)): if best[key[i]]==0: best[key[i]]=i+1 else: if best[k..
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..
https://school.programmers.co.kr/learn/courses/30/lessons/120956 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(babbling): answer = 0 for babb in babbling: babb = list(map(str, babb)) i = 0 length = len(babb) while i < length: if babb[i] == 'a' and (i+2 < length) and babb[i+1] == 'y' and babb[i+2] == 'a': i += 3 elif ba..
https://school.programmers.co.kr/learn/courses/30/lessons/120921?language=python3 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(A, B): answer = 0 check=0 length= len(A) for i in range(length): if (A==B): check=1 break a=A[-1] A=A[:-1] A=a+A answer+=1 if check!=1: answer=-1 return answer 같지 않으면, 맨 끝 알파벳을 따로 저장하고, 맨 앞에 붙..