일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Dynamic Programming
- dfs
- level3
- Stack
- programmers
- Python
- 프로그래머스
- Lv. 2
- 자바스크립트
- level 3
- 문자열
- 소프티어
- 파이썬
- 스택
- javascript
- 타입스크립트
- 너비 우선 탐색
- Java
- softeer
- 브루트포스
- C언어
- bfs
- Lv. 3
- Lv. 0
- group by
- SQL 고득점 KIT
- Typescript
- 다이나믹프로그래밍
- Lv. 1
- DP
- Today
- Total
목록프로그래머스 (203)
몸과 마음이 건전한 SW 개발자
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/42628 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 import heapq def solution(operations): maxHeap = [] minHeap = [] for operation in operations: oper, number = operation.split() number = int(number) if oper == "I": heapq.heappush(maxHeap, -number) heapq.heappush..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/64065 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 def solution(s): lenS = len(s) answer = [] result = [] newList = [] newNumber = "" for idx in range(lenS-1): str = s[idx] if str == "{": newList = [] elif str.isdigit(): newNumber += str elif str == "}": if newN..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/12951 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 def solution(s): answer = "" tmpS = "" for sdx in s: if sdx.isdigit(): answer += tmpS tmpS = sdx elif sdx == " ": tmpS += sdx else: answer += tmpS if answer and answer[-1] == " ": tmpS = sdx.upper() else: tmpS =..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/17686 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 def solution(files): answer = [] lenFiles = len(files) newFiles = [[0 for _ in range(3)] for _ in range(lenFiles)] for r in range(lenFiles): file = files[r] lenFile = len(file) nowIndex = 0 HEAD = "" NUMBER = ""..
문제 링크2019 카카오 개발자 겨울 인턴십 코딩테스트 연습 | 프로그래머스 스쿨개발자 취업의 필수 관문 코딩테스트를 철저하게 연습하고 대비할 수 있는 문제를 총망라! 프로그래머스에서 선발한 문제로 유형을 파악하고 실력을 업그레이드해 보세요!school.programmers.co.kr정답 코드def solution(user_id, banned_id): lenU = len(user_id) lenB = len(banned_id) dictionary = dict() for ban in banned_id: dictionary[ban] = [] def dfs(s, userId, cnt, tmp, length, idx): if s == length: ..
문제 링크 2020 KAKAO BLIND RECRUITMENT 코딩테스트 연습 | 프로그래머스 스쿨 개발자 취업의 필수 관문 코딩테스트를 철저하게 연습하고 대비할 수 있는 문제를 총망라! 프로그래머스에서 선발한 문제로 유형을 파악하고 실력을 업그레이드해 보세요! school.programmers.co.kr 정답코드 def solution(s): length = len(s) if length == 1: return 1 minLength = 1001 for l in range(1, length//2+1): lString = "" prevString = "" cnt = 0 for idx in range(0, length, l): string = "" if idx+l > length: string = s[idx..