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

https://www.acmicpc.net/problem/14248 풀이 아이디어이차원 그래프를 이용한 그래프탐색 문제입니다이동방향은 좌 우 모두 가능하므로 [-1, 1] 로 지정합니다. 풀이let n = Int(readLine()!)!let graph = readLine()!.split(separator: " ").map { Int($0)! }//인덱스 맞추기let s = Int(readLine()!)! - 1var isvisited = Array(repeating: false, count: n)let direction = [-1, 1]func dfs(position: Int) { if position = n || isvisited[position] == true { retur..
Algorithm
2025. 3. 6. 17:50