반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 자바스크립트
- 가천대
- dp
- dfs
- 백준
- 그래프
- 타입스크립트
- Node.js
- 프로그래머스
- 타입 챌린지
- ip
- 크롤링
- Algorithm
- 레벨 1
- HTTP 완벽 가이드
- Nestjs
- 쉬운 문제
- typescript
- 알고리즘
- HTTP
- 프로그래머스 레벨 2
- 수학
- type challenge
- Crawling
- javascript
- BFS
- 문자열
- socket
- 소켓
- TCP
Archives
- Today
- Total
목록레벨3 (1)
kakasoo

// 프로그래머스 레벨 3 가장 먼 노드를 풀었습니다. const solution = (n, edge) => { const map = new Array(n + 1).fill(0); for (let i = 1; i { const [from, to] = el; map[from].push(to); map[to].push(from); }); const visited = new Array(n + 1).fill(0); visited[0] = -1; const bfs = (start) => { const queue = [start]; visited[start] = 1; while (queue.length) { con..
프로그래밍/알고리즘 풀이
2021. 7. 2. 17:06