Skip to main content

Bit Vis

AND • OR • XOR • Shifts

Set A, B and click Generate

Generate to see bit operation explanation.

1x
Ready
Algorithm Details

Generate to see bit operation explanation.

Bitwise ops

Time

O(1)

Space

O(1)

Bitwise
1result = a & b # AND
2result = a | b # OR
3result = a ^ b # XOR