[프로그래머스] 배열 원소의 길이

Sdoubleu·2023년 3월 21일
0

프로그래머스

목록 보기
8/34
post-thumbnail

문제


내가 쓴 풀이

class Solution {
    fun solution(strlist: Array<String>): IntArray {
        return strlist.map{it.length}.toIntArray()
    }
}
profile
개발자희망자

0개의 댓글