- 발행일
99클럽 코테 스터디 31일차 TIL + 오늘의 학습 키워드: 동적계획법
function solution(data) { const [[N, _], ...arr] = data.map((el) => el.split(" ").map(Number)); // 그래프 배열 const graph = Array.from({ length: N + 1 }, …
function solution(data) { const [[N, _], ...arr] = data.map((el) => el.split(" ").map(Number)); // 그래프 배열 const graph = Array.from({ length: N + 1 }, …
필수 해시태그: #99클럽 #코딩테스트준비 #개발자취업 #항해99 #TIL
// 정점의 수 N (5 ≤ N ≤ 100,000), 간선의 수 M (1 ≤ M ≤ 200,000), 시작 정점 R (1 ≤ R ≤ N) let N = Number(input[0].split(' ')[0]) let M = Number(input[0].split(' ')[1]) let …
const [N, M, R] = input[0].split(" ").map(Number); const arr = input.slice(1); const graph = Array.from({ length: N + 1 }, () => []); const visitedOrder = Arra…
const [N, M] = input.shift().split(" ").map(Number);