Home Forums Job Interview 후기 페북 온사이트 코딩퀴즈 페북 온사이트 코딩퀴즈 Name * Password * Email 3번은 uchar면 table도 가능하지만, 큰 type에서는 Brian Kernighan 방법을 쓰면 '1'외 갯수만큼의 iteration으로 풀 수 있겠네요. cnt = 0; while (n) n = n & (n-1); // 가장 덜 중요한 (LSB) '1'을 지우는 과정. loop cnt ++cnt; I agree to the terms of service Comment