일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- ToDoRim
- reetcode
- it
- Equatable
- pubspec.yaml
- dart
- Extentsion
- SwiftGen
- designPattern
- xcode
- pubspec
- algorithm
- Widget
- protocol
- GIT
- swiftlint
- tip
- enumerations
- Leetcode
- github
- toyproject
- listview
- IOS
- basic
- COMMIT
- UIAccessibility
- keyWindow
- Swift
- OSLog
- flutter
- Today
- Total
목록Swift (55)
개발자 수니
📌 이번 글은 Swift의 컬렉션 타입 Array, Dictionary, Set에 대한 설명입니다. Array (배열) 같은 타입의 데이터를 일렬로 나열한 후 순서대로 저장하는 형태의 컬렉션 타입 Array의 기본 기능 .count 배열의 요소 개수 반환 var names: Array = ["suni", "zico", "mino"] print(names.count) // 3 .isEmpty 빈 배열 인지 반환 var emptyArray: [Any] = [Any]() print(emptyArray.isEmpty) // true .first 배열의 맨 처음 요소 반환 .last 배열의 맨 마지막 요소 반환 var names: Array = ["suni", "zico", "mino", "zico"] print..
💡 문제 (Easy) LeetCode - The World's Leading Online Programming Learning Platform 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 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. 로마 숫자는 일곱 가지 다른 기호로 나타낼 수 있습니다: I, V, X, L, C, D 및 M. Symbol Value I 1 V 5 X 10 ..
💡 문제 (Easy) LeetCode - The World's Leading Online Programming Learning Platform 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 Given an integer x, return true if x is a palindrome, and false otherwise. 정수 x가 주어졌을 때, x가 palindrome(앞에서 뒤로, 뒤에서 앞으로 읽었을 때 동일한 내용이 되는 것)인 경우 true를 반환하고 그렇지 않은 경우..
💡 문제 (Easy) LeetCode - The World's Leading Online Programming Learning Platform 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 Given an integer 'num', return the number of steps to reduce it to zero. In one step, if the current number is even, you have to divide it by '2', otherwise, you h..
💡 문제 (Easy) LeetCode - The World's Leading Online Programming Learning Platform 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 Given two strings 'ransomNote' and 'magazine', return true if 'ransomNote' can be constructed by using the letters from 'magazine' and false otherwise. Each letter..
💡 문제 (Medium) LeetCode - The World's Leading Online Programming Learning Platform 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 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a singl..
💡 문제 (Easy) Two Sum - LeetCode Can you solve this real interview question? Two Sum - Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not leetcode.com Given an array of integers nums and an integer target, return indices of the two numbers such that..
💡 문제 (Easy) Running Sum of 1d Array - LeetCode Can you solve this real interview question? Running Sum of 1d Array - Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). Return the running sum of nums. Example 1: Input: nums = [1,2,3,4] Output: [1,3,6, leetcode.com Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]..