본문 바로가기

Jerry's Bakery

검색하기
Jerry's Bakery
프로필사진 _Jerry

  • 분류 전체보기 (20)
    • 개발 (16)
      • iOS (13)
      • API (2)
      • 앱 출시 (1)
    • 알고리즘 (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
일 월 화 수 목 금 토
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
  • Crashlytics
  • dfs
  • SF 폰트
  • Firebase
  • API
  • viewcontroller
  • ios
  • 회고록
  • 개발후기
  • LeetCode
  • Swift
  • Realm
  • TMDB
  • struct
  • Xcode
  • typecasting
  • optional
  • swipe
  • FSCalendar
  • RxSwift
  • switch
  • ios13
  • SwiftUI
  • http
  • flatMap
  • 알고리즘
  • enum
  • 폰트
  • Lifecycle
  • 프로그래머스
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바