프로그래머스/Lv.0
[Swift] 문자열 정렬하기 (1)
물복딱복준복
2022. 12. 17. 16:39
import Foundation
func solution(_ my_string:String) -> [Int] {
return my_string.compactMap {
Int(String($0))
}.sorted()
}