Fichas
Bit wise operations
Fichas del conjunto (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<
Información
- Descripción
- Fichas sobre Bit wise operations, creado por Suhas S el 22/05/2018.
- Creado por
- Suhas S
- Visitas
- 0
- Valoración