프로그래머스 - 숫자 문자열과 영단어 (2021 카카오 채용연계형 인턴쉽)
·
Algorithm/programmers
import Foundationfunc solution(_ s:String) -> Int { return Int(s .replacingOccurrences(of: "zero", with: "0") .replacingOccurrences(of: "one", with: "1") .replacingOccurrences(of: "two", with: "2") .replacingOccurrences(of: "three", with: "3") .replacingOccurrences(of: "four", with: "4") .replacingOccurrences(of: "five", with: "5") .replacingOc..