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