์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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
- ๋นํธ์ฐ์ฐ์
- ์ ํด๋ฆฌ๋ ํธ์ ๋ฒ
- ๋ฐฑ์ค
- dp
- ํ๋ก๊ทธ๋๋จธ์ค
- ๋ถํ ํ์
- ๋์ ํฉ
- ์คํ
- ๋ถํ ์ ๋ณต
- ๋ธ๋ฃจํธํฌ์ค
- ๋ธ๋ฃจํธํฌ์ค ์๊ณ ๋ฆฌ์ฆ
- ์์
- Swift
- Queue
- ์ฝ๋ฉํ ์คํธ
- ์๊ณ ๋ฆฌ์ฆ
- WebApp
- SwiftUI
- ๋ถํ ์ ๋ณต
- ios
- ๊ทธ๋ฆฌ๋ ์๊ณ ๋ฆฌ์ฆ
- ๋ฐฑํธ๋ํน
- WebView
- ๋ฌธ์์ด
- BFS
- ์ฝํ
- dfs
- ์ด์งํ์
Archives
- Today
- Total
MUKER_DEV with iOS
[swift] ํ๋ก๊ทธ๋๋จธ์ค - ๋ค์์ ์ฌ ์ซ์ ๋ณธ๋ฌธ
๐ค ์๊ณ ๋ฆฌ์ฆ/programmers
[swift] ํ๋ก๊ทธ๋๋จธ์ค - ๋ค์์ ์ฌ ์ซ์
MUKER 2022. 10. 15. 15:35
๋์ ํ์ด
import Foundation
func solution(_ common:[Int]) -> Int {
if common[1] - common[0] == common[2] - common[1] {
return common.last! + common[1] - common[0]
}
else {
return common.last! * common[1] / common[0]
}
}
'๐ค ์๊ณ ๋ฆฌ์ฆ > programmers' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[swift] ํ๋ก๊ทธ๋๋จธ์ค - ๋ฌธ์์ด ๋ค์ง๊ธฐ (0) | 2022.11.17 |
---|---|
[swift] ํ๋ก๊ทธ๋๋จธ์ค - ๋ฐฐ์ด ํ์ ์ํค๊ธฐ (0) | 2022.11.16 |
[swift] ํ๋ก๊ทธ๋๋จธ์ค - ์น์์ด (0) | 2022.10.14 |
[swift] ํ๋ก๊ทธ๋๋จธ์ค - ์ ์ฃผ์ ์ซ์3 (0) | 2022.10.12 |
[Swift] Programmers LV1 - ๋ฌธ์์ด ๋ด p์ y์ ๊ฐ์ (0) | 2022.06.27 |