அல்கோரிதம்set logic
Set logic — bits
TT
Testlaa Team
May 14, 2026•1 min read
Char vector; inclusion–exclusion — parity/XOR.
Try this in Python
A, B = 0b1010, 0b1100
print(bin(A | B), bin(A & B), bin(A & ~B))
Key takeaways
- Difference —
A & ~B. - Symmetric diff — XOR.
- Universe mask.
Tags:
Bits & subset DPPythonமாணவர்கள்
