79. A 강조하기
import Foundation func solution(_ myString:String) -> String { var answer : String = "" var arr : [String] = [] arr = myString.lowercased().map{String($0)} fo...
import Foundation func solution(_ myString:String) -> String { var answer : String = "" var arr : [String] = [] arr = myString.lowercased().map{String($0)} fo...
import Foundation func solution(_ strArr:[String]) -> [String] { var answer : [String] = [] answer = strArr for i in answer.indices{ if i % 2 == 0 { ...
import Foundation func solution(_ myString:String) -> String { var answer : String = "" answer = myString.lowercased() return answer } 소문자로 바꾸는 lowercased를 사용...
import Foundation func solution(_ myString:String) -> String { var answer : String = "" answer = myString.uppercased() return answer } 문자열을 대문자로 바꿔주는 upperca...
import Foundation func solution(_ myString:String, _ pat:String) -> Int { var answer : Int = 0 if myString.count >= pat.count { if myString.lowercased(...
import Foundation func solution(_ num_list:[Int]) -> Int { var answer : Int = 0 answer = 11 <= num_list.count ? num_list.reduce(0,+) : num_list.reduce(1,*) ret...
import Foundation func solution(_ num_list:[Int]) -> Int { var answer : Int = 0 var arr : [Int] = [] var n : Int = 0 arr = num_list for i in arr.indices {...
import Foundation func solution(_ arr:[Int]) -> Int { var answer : Int = 0 var temp : [Int] = [] var Arr : [Int] = [] var j : Int = 0 Arr = arr while ...
import Foundation func solution(_ arr:[Int]) -> [Int] { var answer : [Int] = [] answer = arr for i in answer.indices { if answer[i] >= 50 &...
import Foundation func solution(_ arr:[Int], _ queries:[[Int]]) -> [Int] { var answer : [Int] = [] answer=arr for i in queries.indices{ for n in ...