#12925
๐ Question ?
https://school.programmers.co.kr/learn/courses/30/lessons/12932
class Solution {
fun solution(n: Long): IntArray {
var answer = intArrayOf()
return answer
}
}
๐งฉ Thought Process !
- ๋ฌธ์์ด์ ์ ์ํ์ผ๋ก toInt() ํจ์๋ฅผ ์ด์ฉํด์ ๋ฐ๊พธ์ด์ฃผ๊ธฐ
๐ Answer !
class Solution {
fun solution(s: String): Int {
var answer = s.toInt()
return answer
}
}
๐ Result !
๐ Comment :)
๊ฐ๋จ :))