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 |
Tags
- Lifecycle
- 알고리즘
- Swift
- optional
- SwiftUI
- typecasting
- 폰트
- swipe
- 개발후기
- API
- Firebase
- Xcode
- LeetCode
- Realm
- switch
- ios13
- http
- TMDB
- dfs
- enum
- SF 폰트
- FSCalendar
- viewcontroller
- struct
- 프로그래머스
- ios
- flatMap
- 회고록
- Crashlytics
- RxSwift
Archives
- Today
- Total
목록LeetCode (1)
Jerry's Bakery
[알고리즘] Merge Two Sorted Lists(LeetCode) - Swift
문제 링크 Merge Two Sorted Lists - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 접근 방법 결과값 linked list를 만들고, 마지막 노드값을 가지고 있는 노드를 하나 생성합니다. 두 노드를 비교하면서 더 작은 값을 가지고 있는 노드를 추가하고, 한 노드를 다 병합했다면 나머지 노드를 뒤에 이어줍니다. 풀이 class Solution { func addList(_ list: ListNode?, _ currentPos: ListNode?,..
알고리즘
2022. 3. 27. 20:45