Bitwise Operations

Problems on bitwise operations, including AND, OR and XOR of numbers and segments, checking and setting individual bits, powers of two, XOR sums of pairs and subarrays, binary representations, Gray code and Nim games.

The bitmasks article in the Basics section explains the operations. Related problem sets are under Bitmasks, Bitsets and Games.

Problems