Single Number 1 - All elements except one occur twice

Find missing integer in an array with only access to jth bit of elements

November 30, 2022 · 2 min · TagsList of tags for the post  ctci ·  integer ·  bits

Single Number 3 - All elements except two occur twice

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

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

Power of Two Problem

x&(x-1) Explained

Number of 1 Bits Problem

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 · TagsList of tags for the post  bits ·  reverse

Generate All Strings of n 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