Files
tech-interview-handbook/algorithms/binary.md
2019-07-14 16:49:09 -07:00

337 B

id, title
id title
binary Binary
  • How do you verify if an interger is a power of 2?
  • Write a program to print the binary representation of an integer.
  • Write a program to print out the number of 1 bits in a given integer.
  • Write a program to determine the largest possible integer using the same number of 1 bits in a given number.