일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- C언어
- SQL 고득점 KIT
- Dynamic Programming
- 파이썬
- Stack
- 스택
- 브루트포스
- 자바스크립트
- Lv. 2
- Lv. 1
- 소프티어
- Lv. 3
- 다이나믹프로그래밍
- 타입스크립트
- bfs
- DP
- Java
- Python
- 프로그래머스
- Typescript
- dfs
- 너비 우선 탐색
- 문자열
- javascript
- Lv. 0
- level3
- group by
- programmers
- level 3
- softeer
- Today
- Total
목록조합 (5)
몸과 마음이 건전한 SW 개발자
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/258709 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(dice) { const n = dice.length; const halfN = n / 2; const m = dice[0].length; const dictD = {}; // n 개 중에서 n // 2개 고르기 const dfs2 = (s, v, dk, tot) => { if (s == halfN) { dictD[dk].push(tot); ..
순열 만드는 방법 1. 방문 배열을 안에 N = 5 def dfs(S, N, V, chosen): if S == N: print(chosen) return for i in range(N): if i not in V: dfs(S+1, N, V+[i], chosen + [i]) 2. 방문 배열을 밖에 N = 5 V = [0 for _ in range(N)] def dfs2(S, chosen): if S == N: print(chosen) return for i in range(N): if V[i]: continue V[i] = 1 dfs2(S+1, chosen+[i]) V[i] = 0 dfs2(0, []) 조합 만드는 방법 L = 5 def dfs(S, wishL, nowL, chosen): if S >= ..
문제 링크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: ..
내 코드 & 통과 시간isValid = Truedef solution(relation): cols = len(relation[0]) rows = len(relation) combination = [] def dfs(S, V, cnt, cols): if S == cols: if cnt: combination.append(V) return dfs(S+1, V+[S], cnt+1, cols) dfs(S+1, V, cnt, cols) dfs(0, [], 0, cols) unique = [] for comb in combination: tmp = ..
문제 링크 2021 KAKAO BLIND RECRUITMENT 코딩테스트 연습 | 프로그래머스 스쿨 개발자 취업의 필수 관문 코딩테스트를 철저하게 연습하고 대비할 수 있는 문제를 총망라! 프로그래머스에서 선발한 문제로 유형을 파악하고 실력을 업그레이드해 보세요! school.programmers.co.kr 정답 코드 dictLanguage = { "cpp": "1", "java": "2", "python": "3", "-": "4", } dictOccupation = { "backend": "1", "frontend": "2", "-": "3" } dictCareer = { "junior": "1", "senior": "2", "-": "3" } dictSoulFood = { "chicken": "1",..