반응형
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
- Crawling
- 레벨 1
- 쉬운 문제
- Node.js
- ip
- 문자열
- 백준
- HTTP
- 알고리즘
- BFS
- javascript
- type challenge
- dfs
- 크롤링
- TCP
- typescript
- 소켓
- 타입스크립트
- socket
- Algorithm
- dp
- 자바스크립트
- 프로그래머스
- Nestjs
- 수학
- HTTP 완벽 가이드
- 그래프
- 타입 챌린지
- 가천대
- 프로그래머스 레벨 2
Archives
- Today
- Total
목록순열 타입 (1)
kakasoo
Permutation, 타입으로 순열 구현하기
타입 챌린지의 문제인데, 미디움에 있었다. 끔찍한 수준의 난이도인데 이게 왜 medium인지 모르겠다. 아래에 문제를 이해하기 위해 필요한 지식과 해석 순서를 모두 기재하였으니 참고하도록 하자. 문제, 그리고 필요로 하는 결과 type cases = [ Expect, Expect, Expect, Expect, Expect, ] 분산적 조건 타입 type Singular = T extends never ? true : false; type IfAnySingular = Singular; // boolean 타입스크립트 핸드북 - 분산적 조건 타입 Documentation - Conditional Types Create types which act like if statements in the type sys..
프로그래밍/TypeScript
2023. 3. 31. 00:33