https://school.programmers.co.kr/learn/courses/30/lessons/12911
프로그래머스
코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.
programmers.co.kr
function solution(n) {
const len = n.toString(2).split("1").length - 1;
++n;
while (len != n.toString(2).split("1").length - 1) ++n;
return n;
}
GitHub - developeSHG/Algorithm-Baekjoon_Programmers: 백준 and 프로그래머스 소스코드
백준 and 프로그래머스 소스코드. Contribute to developeSHG/Algorithm-Baekjoon_Programmers development by creating an account on GitHub.
github.com
'Coding Test > Programmers' 카테고리의 다른 글
[Programmers Test] (2회차 코딩테스트) No 1. binaryNumber (0) | 2023.01.27 |
---|---|
[Programmers] (2017 팁스타운) Lv 2. 짝지어 제거하기 (0) | 2023.01.26 |
[Programmers] (Dynamic Programming) Lv 2. 피보나치 수 (0) | 2023.01.25 |
[Programmers] Lv 2. 숫자의 표현 (0) | 2023.01.25 |
[Programmers] (월간 코드 챌린지 시즌1) Lv 2. 이진 변환 반복하기 (0) | 2023.01.24 |
댓글