본문 바로가기

anothel의 지식 창고

검색하기
anothel의 지식 창고
프로필사진 anothel

  • 전체보기 (329)
    • 기술 노트 (154)
      • Apache Spark (5)
      • CMake (1)
      • Docker (1)
      • Google Code Style Guide (14)
      • Hooking (1)
      • Network (1)
      • Oracle (1)
      • SQLite (1)
      • WinDbg (0)
      • 정보보안기사 (108)
    • 독서 기록 (50)
    • 성장 일지 (5)
    • 연습장 (120)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • github
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags
  • ^
  • 하늘이
  • 회고록
  • 리눅스
  • 동적계획법
  • 하나씩
  • 반복해서
  • 목표
  • 마이유폰
  • 빨리
  • 백트래킹
  • dfs
  • 연습하는
  • 더
  • 얼른
  • 같다.
  • 하늘 위에
  • 그래도
  • 한번에
  • 저
  • codewars
  • XOR
  • 민병철 전화영어
  • 그래서
  • 나는
  • 너무
  • 의
  • 레벨2
  • 우물 안 개구리
  • 열심히
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록사나이 (1)

anothel의 지식 창고

Bit Counting

Write a function that takes an integer as input, and returns the number of bits that are equal to one in the binary representation of that number. You can guarantee that input is non-negative. Example: The binary representation of 1234 is 10011010010, so the function should return 5 in this case Solution unsigned int countBits(unsigned long long n){ unsigned int result = 0; while(0 < n) { if(n %..

연습장 2021. 10. 19. 19:11
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바