일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- Nestjs
- TCP
- javascript
- 쉬운 문제
- 문자열
- 레벨 1
- 백준
- ip
- HTTP 완벽 가이드
- 알고리즘
- 프로그래머스 레벨 2
- dfs
- typescript
- Node.js
- 자바스크립트
- BFS
- 타입 챌린지
- HTTP
- 그래프
- 프로그래머스
- 가천대
- 크롤링
- Algorithm
- 수학
- type challenge
- 타입스크립트
- Crawling
- 소켓
- dp
- socket
- Today
- Total
목록빙산 (2)
kakasoo
const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const graph = []; let [N, M] = [0, 0]; rl.on("line", (line) => { if (!N) { [N, M] = line.split(" ").map(Number); } else { graph.push(line.split(" ").map(Number)); if (graph.length === N) { main(); process.exit(); } } }); const main = () => { let visited = []; const xMove ..
const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const graph = []; let N, M; rl.on("line", (line) => { if (!N) { [N, M] = line.split(" ").map(Number); } else { const row = line.split(" ").map(Number); graph.push(row); if (graph.length === N) { rl.close(); } } }).on("close", () => { const visited = []; for (let i = 0; i ..