| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 동적계획법
- dfs
- 파이썬
- 프로그래머스
- 백준
- bfs
- Lv. 0
- SQL 고득점 KIT
- SQL
- 너비 우선 탐색
- group by
- 소프티어
- Lv. 2
- Lv. 1
- Java
- Dynamic Programming
- DP
- 깊이 우선 탐색
- softeer
- javascript
- programmers
- level 3
- Lv. 3
- join
- 오블완
- Python
- LEVEL 2
- Baekjoon
- 자바스크립트
- 티스토리챌린지
- Today
- Total
목록bfs (28)
몸과 마음이 건전한 SW 개발자
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/150366?language=python3 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드from collections import dequedef solution(commands): adjL = [[[] for _ in range(51)] for _ in range(51)] valueBoard = [["" for _ in range(51)] for _ in range(51)] def strToint(r, c): ..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/60063 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드function solution(board) { let answer = 0; const n = board.length; const [er, ec] = [n-1, n-1]; const dr = [-1, 1, 0, 0]; const dc = [0, 0, -1, 1]; const isValid = (nr, nc) => { retur..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/118669?language=javascript 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드function solution(n, paths, gates, summits) { let minP = 50001; // 최소 강도로 도달할 수 있는 정상 번호 초기화 let minV = 10000001; // 최소 강도 초기화 // 정상과 게이트를 쉽게 확인하기 위한 딕셔너리 생성 const dictSG = {}; ..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/132266?language=javascript 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드function solution(n, roads, sources, destination) { const answer = []; // 노드 저장 const adjL = Array(n+1).fill().map(() => []); for (const [start, to] of roads) { adjL[start]..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/67259 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드function solution(board) { const n = board.length; const [er, ec] = [n-1, n-1]; const maxCosts = 25 * 25 * 500 + 1; let visited = Array(n).fill().map(() => Array(n).fill().map(() => Array(4).fill().map(()..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/49189?language=javascript 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드function solution(n, edge) { let answer = 0; let maxD = 0; const queue = []; const adjL = Array(n+1).fill().map(() => []); for (const [start, to] of edge) { adjL[start].p..