전체 글
![category 대표 이미지](https://t1.daumcdn.net/tistory_admin/static/manage/images/r3/default_L.png)
-
Dispatch (Framework) 시스템에서 관리하는 Dispatch 대기열에 작업을 제출하여 Multi Core 하드웨어에서 코드를 동시에 실행 GCD(Grand Central Dispatch)라고 알려진 Dispatch에서는 macOS, iOS, watchOS 및 tvOS의 멀티코어 하드웨어에서 동시 코드 실행 지원에 대한 체계적이고 포괄적인 개선사항을 제공하는 언어 기능 Runtime 라이브러리 및 시스템 개선사항이 포함되어 있음 Dispatch | Apple Developer Documentation Execute code concurrently on multicore hardware by submitting work to dispatch queues managed by the system. ..
[Swift] Dispatch (1)Dispatch (Framework) 시스템에서 관리하는 Dispatch 대기열에 작업을 제출하여 Multi Core 하드웨어에서 코드를 동시에 실행 GCD(Grand Central Dispatch)라고 알려진 Dispatch에서는 macOS, iOS, watchOS 및 tvOS의 멀티코어 하드웨어에서 동시 코드 실행 지원에 대한 체계적이고 포괄적인 개선사항을 제공하는 언어 기능 Runtime 라이브러리 및 시스템 개선사항이 포함되어 있음 Dispatch | Apple Developer Documentation Execute code concurrently on multicore hardware by submitting work to dispatch queues managed by the system. ..
2023.11.23 -
func solution(_ board:[[Int]]) -> Int { var copy = board for i in 0...board.count-1 { for j in 0...board.count-1 { if board[i][j] == 1 { if i != 0 && j != 0 { if copy[i-1][j-1] != 1 { copy[i-1][j-1] = 2 } } if i != 0 { if copy[i-1][j] != 1 { copy[i-1][j] = 2 } } if i != 0 && j+1 < board.count { if copy[i-1][j+1] != 1 { copy[i-1][j+1] = 2 } } if j != 0 { if copy[i][j-1] != 1 { copy[i][j-1] = 2 } ..
[Programmers] 안전지대func solution(_ board:[[Int]]) -> Int { var copy = board for i in 0...board.count-1 { for j in 0...board.count-1 { if board[i][j] == 1 { if i != 0 && j != 0 { if copy[i-1][j-1] != 1 { copy[i-1][j-1] = 2 } } if i != 0 { if copy[i-1][j] != 1 { copy[i-1][j] = 2 } } if i != 0 && j+1 < board.count { if copy[i-1][j+1] != 1 { copy[i-1][j+1] = 2 } } if j != 0 { if copy[i][j-1] != 1 { copy[i][j-1] = 2 } ..
2023.11.23 -
새로 시작하는 프로젝트에서 날씨를 가져오는 API를 사용하게 되었다. 예전 패스트캠퍼스 강의에서 날씨 앱을 만들 때 사용했던 openweather API를 사용했다. Сurrent weather and forecast - OpenWeatherMap Access current weather data for any location on Earth including over 200,000 cities! The data is frequently updated based on the global and local weather models, satellites, radars and a vast network of weather stations. how to obtain APIs (subscriptions w op..
TripMate (1) - openweatherAPI와 CLLocationManager 사용하기새로 시작하는 프로젝트에서 날씨를 가져오는 API를 사용하게 되었다. 예전 패스트캠퍼스 강의에서 날씨 앱을 만들 때 사용했던 openweather API를 사용했다. Сurrent weather and forecast - OpenWeatherMap Access current weather data for any location on Earth including over 200,000 cities! The data is frequently updated based on the global and local weather models, satellites, radars and a vast network of weather stations. how to obtain APIs (subscriptions w op..
2023.11.21 -
func solution(_ my_string:String) -> Int { return my_string.split(whereSeparator: { !$0.isNumber }) .reduce(0) { $0 + Int($1)! } } 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 참고 [프로그래머스] 숨어있는 숫자의 덧셈(2)(Swift) 코드 회고 어떻게 풀지 감이 안와 다른 사람의 코드를 보고 이해를 하였다 reduce라는 고차함수는 데이터를 합쳐주기 위해 사용하는 함수이다 map, filter, reduce 같은 고차함수들을 공부해야겠다 velog.io
[Programmers] 숨어있는 숫자의 덧셈 (2)func solution(_ my_string:String) -> Int { return my_string.split(whereSeparator: { !$0.isNumber }) .reduce(0) { $0 + Int($1)! } } 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 참고 [프로그래머스] 숨어있는 숫자의 덧셈(2)(Swift) 코드 회고 어떻게 풀지 감이 안와 다른 사람의 코드를 보고 이해를 하였다 reduce라는 고차함수는 데이터를 합쳐주기 위해 사용하는 함수이다 map, filter, reduce 같은 고차함수들을 공부해야겠다 velog.io
2023.11.21 -
var sorted: [Int] = numbers.sorted() var a: Int = sorted[0]*sorted[1] var b: Int = sorted[numbers.count-1]*sorted[numbers.count-2] return a > b ? a : b 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr
[Programmers] 최대값 만들기(2)var sorted: [Int] = numbers.sorted() var a: Int = sorted[0]*sorted[1] var b: Int = sorted[numbers.count-1]*sorted[numbers.count-2] return a > b ? a : b 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr
2023.11.21 -
RelativeDateTimeFormatter RelativeDateTimeFormatter | Apple Developer Documentation A formatter that creates locale-aware string representations of a relative date or time. developer.apple.com extension Date{ var relativeTime_abberiavted: String{ let formatter = RelativeDateTimeFormatter() formatter.unitsStyle = .full // 지역 설정하면 그 나라 언어로 상대시간을 표시 formatter.locale = Locale(identifier: "ko_KR") re..
[Swift] RelativeDateTimeFormatter(상대시간)RelativeDateTimeFormatter RelativeDateTimeFormatter | Apple Developer Documentation A formatter that creates locale-aware string representations of a relative date or time. developer.apple.com extension Date{ var relativeTime_abberiavted: String{ let formatter = RelativeDateTimeFormatter() formatter.unitsStyle = .full // 지역 설정하면 그 나라 언어로 상대시간을 표시 formatter.locale = Locale(identifier: "ko_KR") re..
2023.11.20