The Algorithms logo
The Algorithms

Bit Manipulation

Binary and Operator

Binary Coded Decimal

Binary Count Setbits

Binary Count Trailing Zeros

Binary or Operator

Binary Twos Complement

Binary Xor Operator

Bitwise Addition Recursive

Count 1s Brian Kernighan Method

Count Number of One Bits

Find Previous Power of Two

Gray Code Sequence

Highest Set Bit

Index of Rightmost Set Bit

Is Power of Two

Largest Pow of Two Le Num

Missing Number

Numbers Different Signs

Single Bit Manipulation Operations

Swap All Odd and Even Bits

Generate Sub Sets

Is Powerof Four

Next Power Of Two

Unique Element In An Array

Count Bits Flip

Count of Set Bits

Count of Trailing Ciphers in Factorial N

Find Non Repeating Number

Next Higher Number with Same Number of Set Bits

Travelling Salesman Using Bit Manipulation

Non Repeating Number Finder

Single Bit Operations

Sum of Two Integers

Binary Count Trailing Zeroes

Single Bit Binary Operations