Skip to content
The DSA Woodshed

Bit Manipulation

  • Counting Bits

    Counting Bits — count 1-bits for all numbers 0..n

  • Reverse Bits

    Reverse Bits — reverse the bits of a 32-bit unsigned integer

  • Single Number

    Single Number — find the element appearing once (others twice)