From 5c43799e5700fd2891b1c6ee21716f8c473bb5ef Mon Sep 17 00:00:00 2001 From: Bingxu Ren Date: Fri, 20 Oct 2017 21:38:34 -0500 Subject: [PATCH] Add bit manipulation questions (#72) --- algorithms/bit-manipulation.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 algorithms/bit-manipulation.md diff --git a/algorithms/bit-manipulation.md b/algorithms/bit-manipulation.md new file mode 100644 index 00000000..5ad2f2c4 --- /dev/null +++ b/algorithms/bit-manipulation.md @@ -0,0 +1,7 @@ +Bit Manipulation +== + +- How do you verify if an interger is a power of 2? +- Wirte 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. \ No newline at end of file