코딩 테스트/프로그래머스 level2
점프와 순간 이동
fullfish
2022. 9. 10. 01:53

코드
function solution(n) {
return n.toString(2).match(/1/g).length;
}