Flashcards
Bit wise operations
Cards in this deck (1)
- 1https://www.geeksforgeeks.org/bitwise-hacks-for-competitive-programming/Set bit
num |= (1 << pos);
Unset bit
num &= (~(1 << pos));
Toggle bit
num ^= (1 << pos);
Check if bit is set
bool bit = num & (1<
Information
- Description
- Flashcards on Bit wise operations, created by Suhas S on 22/05/2018.
- Created by
- Suhas S
- Views
- 0
- Rating