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

November 30, 2022 · 3 min ·  Tags List of tags for the post   ctci ·  integer ·  bits ·  Last updated: Jul 22, 2024

Single Number 3 - All elements except two occur twice

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

August 23, 2022 · 1 min ·  Tags List of tags for the post   ctci ·  bits ·  Last updated: Aug 2, 2025

Power of Two

x&(x-1) Explained

August 23, 2022 · 4 min ·  Tags List of tags for the post   bits ·  explained ·  video ·  Last updated: Aug 2, 2025

Number of 1 Bits

Swap two number in place without temporary variables

August 11, 2022 · 3 min ·  Tags List of tags for the post   ctci ·  bits ·  number ·  moderate ·  xor ·  Last updated: Aug 2, 2025

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 ·  Last updated: Aug 2, 2025

Generate All Strings of n bits

Check If an Integer's Bit Representation Is a Palindrome

August 7, 2022 · 4 min ·  Tags List of tags for the post   integer ·  bits ·  palindrome ·  Last updated: Aug 2, 2025
This site uses cookies to improve your experience on our website. By using and continuing to navigate this website, you accept this. Privacy Policy