일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- unittest
- Bubble Search
- hackerrank
- Swift디자인패턴
- ARC
- SWIFT
- 프로그래머스
- firestore
- ReactorKit UnitTest
- 시험에자주나오는것만
- TDD
- Safari Inspector
- iOS앱 디버깅
- 앱의생명주기
- 반응형프레임워크
- algorithm
- 카카오맵클론
- AutoLayout
- UIKit
- IOS
- alamofire
- Swift코딩테스트
- ios면접
- Di
- mrc
- RxSwift
- HackersRank
- firebase
- RC
- 코딩테스트입문
- Today
- Total
목록전체 글 (93)
샘성의 iOS 개발 일지
UIView 화면의 콘텐츠를 표시하고 관리를 담당하는 사각형의 영역을 가진 객체를 UIView라고 정의한다. UIButton, UILabel등의 화면 구성요소들 또한 모두 UIView라고 지칭하며, 해당 객체를 관리하기 위해 존재하는 객체를 UIViewController라고 한다. UIViewController의 기능 View의 컨텐츠를 업데이트 하고, View와 사용자간에 상호작용에 반응하는 역할을 한다. 또한 인터페이스의 레이아웃을 관리 및 View의 사이즈를 조정하는 역할 뿐만 아니라, 다른 컨트롤러를 통한 화면 전환 기능 또한 수행한다.
문제 설명: You are choreographing a circus show with various animals. For one act, you are given two kangaroos on a number line ready to jump in the positive direction (i.e, toward positive infinity). The first kangaroo starts at location x1 and moves at a rate of v1 meters per jump. The second kangaroo starts at location x2 and moves at a rate of v2 meters per jump. You have to figure out a way to ..
문제 설명: Sam's house has an apple tree and an orange tree that yield an abundance of fruit. Using the information given below, determine the number of apples and oranges that land on Sam's house. In the diagram below: The red region denotes the house, where s is the start point, and t is the endpoint. The apple tree is to the left of the house, and the orange tree is to its right. Assume the trees..
문제 설명: HackerLand University has the following grading policy: Every student receives a grades in the inclusive range from 0 to 100. Any grade less than 40 is a failing grade. Sam is a professor at the university and likes to round each student's according to these rules: If the difference between the grade and the next multiple of 5 is less than 3, round grade up to the next multiple of 5. If t..
문제 설명: Given a time in -hour AM/PM format, convert it to military (24-hour) time. Note: - 12:00:00AM on a 12-hour clock is 00:00:00 on a 24-hour clock. - 12:00:00PM on a 12-hour clock is 12:00:00 on a 24-hour clock. Example * s = '12:01:00 PM' Return '12:01:00'. * s = '12:01:00 AM' Return '00:01:00'. 내 풀이: func timeConversion(s: String) -> String { // Foundation에 dateFormatter 있으므로 활용 var timeFo..
문제 설명: 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..