Explain (n & (n-1)) == 0

August 23, 2022 · 1 min ·  Tags List of tags for the post   ctci ·  bits

Power of Two Problem

x&(x-1) Explained

Number of 1 Bits

Swap two number in place without temporary variables

Reverse a string in C using as little additional memory as possible

August 11, 2022 · 2 min ·  Tags List of tags for the post   bits ·  reverse

Generate All Strings of n bits

Number Complement

Number of Steps to Reduce a Number to Zero Problem

Explain x & (-x)

April 15, 2022 · 1 min ·  Tags List of tags for the post   bits
This site uses cookies to improve your experience on our website. By using and continuing to navigate this website, you accept this. Privacy Policy