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

코드 중간 주석 부분을 확인할 것 // 백준 10971번 외판원 순회2를 풀었습니다. const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const input = []; const permutations = function* (elements) { if (elements.length === 1) { yield elements; } else { const [first, ...rest] = elements; for (const a of permutations(rest)) { for (let i = 0; i < elements.length..
프로그래밍/알고리즘 풀이
2021. 7. 31. 16:38