Swift 알고리즘 및 언어공부 46. 숫자 문자열과 영단어 1 우선 "one","two","three"... 를 담은 배열 2 한 단어씩 합쳐서 변수에 저장하는데, 3 변수와 배열에 있는 숫자 문자열과 같으면 index 값 저장 ( num = firstIndex(of:변수값) ) 4. num 값을 result 배열에 append 해주고, 리턴할 때 Int로 변환 import Foundation func solution(_ s:String) -> Int { let numArr:[String] = ["zero","one","two","three","four","five","six","seven","eight","nine"] var joined:String = "" var result:[Int] = [] f..