반응형
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
- 쉬운 문제
- 문자열
- Algorithm
- 크롤링
- type challenge
- 자바스크립트
- Nestjs
- dfs
- 그래프
- 프로그래머스
- 가천대
- BFS
- Crawling
- HTTP 완벽 가이드
- socket
- dp
- 타입스크립트
- 백준
- 수학
- 타입 챌린지
- 소켓
- ip
- javascript
- 프로그래머스 레벨 2
- Node.js
- typescript
- HTTP
- 알고리즘
- 레벨 1
- 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