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