You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tech-interview-handbook/contents/algorithms/binary.md

10 lines
337 B

---
id: binary
title: Binary
---
- How do you verify if an interger is a power of 2?
7 years ago
- 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.
7 years ago
- Write a program to determine the largest possible integer using the same number of 1 bits in a given number.