본문 바로가기

김경록의 앱 개발 여정

검색하기
김경록의 앱 개발 여정
프로필사진 Kim Roks

  • 분류 전체보기 (83)
    • TIL (30)
    • Algorithm (41)
    • Trouble Shooting (12)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/03   »
일 월 화 수 목 금 토
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
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2025/03/06 (1)

김경록의 앱 개발 여정

[Swift 백준] 14248 점프 점프

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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바