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

const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", (line) => { const num = Number(line); const rows = new Array(num + 1).fill(0).map((el) => 0); const isAble = (row) => { for (let i = 1; i < row; i++) { if ( rows[i] === rows[row] || Math.abs(rows[row] - rows[i]) === row - i ) { return false; } } return true;..
프로그래밍/알고리즘 풀이
2021. 8. 4. 15:21