Karteikarten
Bit wise operations
Karten in diesem Stapel (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<
Informationen
- Beschreibung
- Karteikarten am Bit wise operations, erstellt von Suhas S am 22/05/2018.
- Erstellt von
- Suhas S
- Aufrufe
- 0
- Bewertung