일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Java
- DP
- 소프티어
- Baekjoon
- 동적계획법
- 깊이 우선 탐색
- SQL 고득점 KIT
- programmers
- javascript
- group by
- 파이썬
- SQL
- Dynamic Programming
- Lv. 0
- 티스토리챌린지
- Lv. 2
- 너비 우선 탐색
- LEVEL 2
- join
- bfs
- Lv. 1
- level 3
- 오블완
- 백준
- softeer
- dfs
- Python
- 프로그래머스
- Lv. 3
- 자바스크립트
- Today
- Total
목록알고리즘 (268)
몸과 마음이 건전한 SW 개발자

문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/181186 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(n) { const MOD = 1_000_000_007; const dp = [0, 1, 3, 10, 23, 62, 170]; if (n 풀이 방법https://ampersandor.tistory.com/21 [프로그래머스] 아방가르드 타일링 (파이썬)0. 문제 설명 문제는 간단하게 말해서, 왼쪽 도형 세개를 이용하여 높이가 3이고 넓이가 n 인 사각형을 빈틈없이 채울 수 있는 ..

문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/131702 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(clockHands) { let answer = Infinity; const n = clockHands.length; const isValid = (nr, nc) => 0 { for (let d = 0; d { if (vCnt >= answer) { return; } if (s === n) { ..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/214289 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(temperature, t1, t2, a, b, onboard) { // 계산을 편리하게 하기 위해서 -10 Array(51).fill(Infinity)); dp[0][t] = 0; const isValid = (i, temp) => !onboard[i] || (t1 t ? ht-1 : ht; if (isValid(i+1, te..
문제 링크https://softeer.ai/practice/9657 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai정답 코드const readline = require('readline');const rl = readline.createInterface({ input: process.stdin, output: process.stdout,});const inputData = [];rl.on('line', (line) => { inputData.push(line.split(" ").map((e) => Number(e)));}).on('close', () => { const [n, m] = inputData[0]; const board = inputData.sl..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/214288?language=javascript 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드// 멘토 n명, 1~k번 상담 유형, 각 멘토는 k개의 상담 유형 중 하나만 담당function solution(k, n, reqs) { // 단, 각 유형별로 멘토 인원이 적어도 한 명 이상이어야 합니다. let answer = 1000 * 3000; const types = Array.from({length: n+1}, () => []); reqs.forEa..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/92345 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드def solution(board, aloc, bloc): n, m = len(board), len(board[0]) ar, ac = aloc br, bc = bloc dr = [-1, 1, 0, 0] dc = [0, 0, -1, 1] def isValid(nr, nc): return 0 풀이 방법 초기 세팅:board는 발판 배열이고, aloc과 bloc은 각각 플레이..