반응형
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
- HTTP
- 백준
- 그래프
- 문자열
- typescript
- 타입스크립트
- 쉬운 문제
- HTTP 완벽 가이드
- 레벨 1
- 가천대
- 소켓
- socket
- BFS
- 수학
- dp
- Crawling
- 프로그래머스 레벨 2
- type challenge
- Node.js
- 크롤링
- 타입 챌린지
- Nestjs
- 알고리즘
- TCP
- Algorithm
- 프로그래머스
- 자바스크립트
- dfs
- javascript
- ip
Archives
- Today
- Total
목록백준 1260번 (1)
kakasoo
[node.js] dfs와 bfs ( 백준 1260번 )
// 백준 1260번 DFS와 BFS를 풀었습니다. const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const input = []; let n = 0; let m = 0; let start = 0; rl.on("line", (line) => { if (!n) { [n, m, start] = line.split(" ").map(Number); } else { input.push(line); if (input.length === m) { main(); process.exit(); } } }); const dfs = (start) =>..
프로그래밍/알고리즘 풀이
2021. 4. 9. 17:19