일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 해커랭크
- hackerrank
- 방송통신대학교 대학원 정보과학과
- Qualification Round
- 3D PRINTING
- 파이썬
- on-prem
- K8S
- nestedlists
- Code Jam
- secondlowestgrade
- GitLab
- Python
- Kubernetes
- 2022
- MySQL
- 하늘과 바람과 별과 詩
- 방통대 대학원 정보과학과
- LEVEL 2
- ingress-nginx
- Code Jam 2022
- ESXi 업데이트
- openebs
- 프로그래머스
- 정보과학과
- C++
- 코딩테스트
- swift
- 하늘과 바람과 별과 시
Archives
- Today
- Total
공대생의 비망록
[Swift] Tuple 배열 contains() 구현 본문
1 2 3 4 5 6 7 8 9 | func containsTuple(_ array: [(Int, Int)], _ tuple:(Int,Int)) -> Bool { let (x, y) = tuple for (i, j) in array { if i == x && j == y { return true } } return false } | cs |
'Programming Language > Swift' 카테고리의 다른 글
[프로그래머스][Lv. 1] 신고 결과 받기 Swift 풀이 (0) | 2022.03.14 |
---|---|
[Swift] Queue 구현하기 (0) | 2021.05.09 |
[Swift] Stack 구현하기 (0) | 2021.05.09 |
[Swift][iOS Simulator] nw_protocol_get_quic_image_block_invoke dlopen libquic failed 에러? (0) | 2021.02.17 |
[Swift] Data advanced(by: Int), dropFirst(k: Int) 비교 (0) | 2021.01.26 |
Comments