The Algorithms logo
The Algorithms
AboutDonate

Bit Manipulation

Single Bit Manipulation Operations

Binary Twos Complement

Binary Xor Operator

Count Number of One Bits

Is Power of Two

Numbers Different Signs

Binary Count Trailing Zeros

Highest Set Bit

Index of Rightmost Set Bit

Binary Count Setbits

Binary and Operator

Gray Code Sequence

Count 1s Brian Kernighan Method

Binary or Operator

Next Power Of Two

Count Bits Flip

Find Non Repeating Number

Count of Trailing Ciphers in Factorial N

Count of Set Bits

Next Higher Number with Same Number of Set Bits

Travelling Salesman Using Bit Manipulation

Single Bit Binary Operations

Binary Count Trailing Zeroes