본문 바로가기

김경록의 앱 개발 여정

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

  • 분류 전체보기 (85)
    • TIL (32)
    • Algorithm (41)
    • Trouble Shooting (12)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/04   »
일 월 화 수 목 금 토
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
  • UIKit
  • RxSwift
  • BFS
  • claen architecture
  • swift concurrency
  • task cancel
  • custom navigation bar
  • 타임라인 포맷팅
  • domain data
  • Tuist
  • button configuration
  • identifiable
  • swift 점선
  • traits
  • swift custom ui
  • swift dashed line
  • uikit toast
  • DP
  • scene delegate
  • custombottomsheet
  • rxdatasources
  • custom ui
  • reactorkit
  • swift 백준
  • swift navigationcontroller
  • 버튼 피드백
  • coordinator
  • task cancellation
  • SWIFT
  • swift bottomsheet
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2025/04/10 (1)

김경록의 앱 개발 여정

[Swift 백준] 1269 대칭 차집합

풀이두 집합 a,b 에서(a - b).count + (b-a).count 를 구하는 문제입니다.Swift에서 여집합을 구하는 함수는 'subtract()'와 'subtracting()' 입니다.둘의 차이점은 subtractsubtracting원본 변형새로운 집합 return이니 편의를 위해 'subtracting'을 사용해줍니다 let nm = readLine()!.split(separator: " ").map{Int($0)!}let a = Set(readLine()!.split(separator: " ").map{Int($0)!})let b = Set(readLine()!.split(separator: " ").map{Int($0)!})let aCount = a.subtracting(b).countle..

Algorithm 2025. 4. 10. 11:00
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바