The Algorithms logo
The Algorithms
AboutDonate

Bit Manipulation

Binary and Operator

Numbers Different Signs

Count Number of One Bits

Binary Count Setbits

Single Bit Manipulation Operations

Gray Code Sequence

Highest Set Bit

Index of Rightmost Set Bit

Binary Xor Operator

Is Power of Two

Binary Count Trailing Zeros

Binary Twos Complement

Count 1s Brian Kernighan Method

Binary or Operator

Next Power Of Two

Count of Trailing Ciphers in Factorial N

Next Higher Number with Same Number of Set Bits

Count Bits Flip

Find Non Repeating Number

Travelling Salesman Using Bit Manipulation

Count of Set Bits

Single Bit Binary Operations

Binary Count Trailing Zeroes