
https://school.programmers.co.kr/learn/courses/30/lessons/42842 내 풀이import Foundationfunc solution(_ brown:Int, _ yellow:Int) -> [Int] { var size: [Int] = [] var totalSize: Int = brown + yellow for height in 1...totalSize { let width = totalSize / height if (width - 2) * (height - 2) == yellow { size.append(width) size.append(height) } ..

오늘의 알고리즘 문제는 Stack / Queue에 관련된 문제였다.주어진 s에 괄호가 여/닫이 다 되는지 판단하고 답을 내는 문제였고,풀이는 아래와 같다. https://school.programmers.co.kr/learn/courses/30/lessons/12909 내 풀이import Foundationfunc solution(_ s:String) -> Bool { var ans:Bool = false var tempArr: [String] = [] for bracket in s { if !tempArr.isEmpty && tempArr[tempArr.endIndex - 1] == "(" && bracket == ")" { tempArr.remove..
- Total
- Today
- Yesterday
- CS 네트워크
- Swift final
- Swift Error Handling
- Swift joined()
- Swift inout
- Swift Leetcode
- 원티드 프리온보딩
- Swift 프로그래머스
- Swift RIBs
- swift protocol
- swift 고차함수
- Class
- Swift joined
- swift property
- Combine: Asynchronous Programming with Swift
- RTCCameraVideoCapturer
- RIBs tutorial
- Swift 내림차순
- swift (programmers)
- Swift init
- iOS error
- swift programmers
- 2023년 회고
- Swift ModernRIBs
- Swift 프로퍼티
- swift reduce
- Swift
- Swift 알고리즘
- ios
- removeLast()
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |