The Algorithms logo
The Algorithms
AboutDonate

Bit Manipulation

Gray Code Sequence

Binary and Operator

Binary Count Setbits

Count Number of One Bits

Binary Xor Operator

Binary or Operator

Is Power of Two

Binary Twos Complement

Count 1s Brian Kernighan Method

Index of Rightmost Set Bit

Single Bit Manipulation Operations

Highest Set Bit

Binary Count Trailing Zeros

Numbers Different Signs

Next Power Of Two

Find Non Repeating Number

Travelling Salesman Using Bit Manipulation

Count Bits Flip

Count of Set Bits

Count of Trailing Ciphers in Factorial N

Binary Count Trailing Zeroes

Single Bit Binary Operations