반응형 1의 갯수 세기1 338. Counting Bits 338. Counting Bits LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 이진법으로 바꾼후에 1의 숫자가 몇개인지 배열로 리턴하라는 문제 /** * @param {number} n * @return {number[]} */ var countBits = function(n) { let bits = [] for(let i = 0; i 1 === eleme.. 2024. 2. 19. 이전 1 다음 반응형