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
- UIKit
- DP
- custom navigation bar
- swift 백준
- scene delegate
- identifiable
- button configuration
- BFS
- custom ui
- SWIFT
- claen architecture
- swift navigationcontroller
- 타임라인 포맷팅
- domain data
- uikit toast
- custombottomsheet
- swift dashed line
- task cancel
- swift custom ui
- reactorkit
- swift concurrency
- swift bottomsheet
- coordinator
- traits
- Tuist
- RxSwift
- rxdatasources
- swift 점선
- 버튼 피드백
- task cancellation
Archives
- Today
- Total
목록2025/03/14 (1)
김경록의 앱 개발 여정

풀이 아이디어힙 구현 문제입니다.풀이struct Heap { private var array: [T] = [] private let isOrderedBefore: (T, T) -> Bool init(isMinHeap: Bool = true) { self.isOrderedBefore = isMinHeap ? { $0 $1 } } var isEmpty: Bool { array.isEmpty } var count: Int { array.count } var peek: T? { array.first } /// 요소 추가 (O(log n)) mutating func insert(_ value: T) { array.ap..
Algorithm
2025. 3. 14. 21:30