𝗔𝗣𝗣𝗟𝗘/ALGORITHM
2024. 3. 19.
[내일배움캠프] 데일리 루틴(iOS_3회차) - 2016년
내 풀이 func solution(_ a:Int, _ b:Int) -> String { var day: Int = b let week: [String] = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"] let month: [Int] = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] for i in 0.. String { let weekday = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"] let daysInMonths = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] return weekday[(daysInMonths[0..