codility 遠端面試 ; function solution(N) { ; const str = Math.pow(11,N).toString() ; return str.match(/1/g).length ; solution(3) // output: 2.
確定! 回上一頁