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