일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- ARC
- 코딩테스트입문
- RC
- algorithm
- SWIFT
- 반응형프레임워크
- ios면접
- AutoLayout
- firestore
- unittest
- Bubble Search
- TDD
- hackerrank
- Safari Inspector
- iOS앱 디버깅
- 앱의생명주기
- mrc
- 시험에자주나오는것만
- IOS
- firebase
- 프로그래머스
- UIKit
- alamofire
- HackersRank
- 카카오맵클론
- Swift디자인패턴
- Di
- Swift코딩테스트
- RxSwift
- ReactorKit UnitTest
- Today
- Total
목록Algorithm/HackerRank (12)
샘성의 iOS 개발 일지
문제 설명: You are in charge of the cake for a child's birthday. You have decided the cake will have one candle for each year of their total age. They will only be able to blow out the tallest of the candles. Count how many candles are tallest. 내 풀이: // should return the number of tallest candle they have func birthdayCakeCandles(candles: [Int]) -> Int { // 큰 순서대로 배열 sorted 후, 첫번째 인덱스의 값 추출 (가장 큰 값)..
문제 설명: Staircase detail This is a staircase of size : n = 4 # ## ### #### Its base and height are both equal to n. It is drawn using # symbols and spaces. The last line is not preceded by any spaces. Write a program that prints a staircase of size n. 내 풀이: func staircase(n: Int) -> Void { for i in 1...n { // 띄어쓰기 먼저 반복 후, 마지막에 #가 출력되야 함 print(String(repeating: " ", count: n - i) + String(repeati..
문제 설명: Given a square matrix, calculate the absolute difference between the sums of its diagonals. For example, the square matrix is shown below: 1 2 3 4 5 6 9 8 9 The left-to-right diagonal = 1 + 5 + 9 = 15. The right to left diagonal = 9 + 5 + 3 = 17. Their absolute difference is |15 - 17|. Complete the diagonalDifference function in the editor below. diagonalDifference takes the following par..