Bitmasks

Problems on bitmasks, including enumerating all subsets of a small set, dynamic programming over subsets, states of lights and switches, assignment and covering problems with up to twenty items, and puzzles where each cell is on or off.

The bitmasks article in the Basics section explains how to store and iterate over subsets. Related problem sets are under Bitwise operations, Brute force and Dynamic programming.

Problems

Cycle shifts#27

Easy (≈1000)

Unhappy Bus#247

Very easy (≈850)

Code Permutations#551

Hard (≈1650)

AntiGray#725

Very easy (≈850)

Informants#782

Medium (≈1350)

John#789

Very easy (≈850)

Hyper-drive#1184

Hard (≈1650)

I Speak Whales#1338

Hard (≈1650)

Bitwise Equations#1550

Very easy (≈850)

Binary number#1645

Easy (≈1000)

Reset bits#1647

Easy (≈1000)

Fenwick Function#1648

Easy (≈1000)

Decoding Task#1650

Very easy (≈850)

Lowest Bit#1753

Easy (≈1000)

Gray Codes#1780

Very easy (≈850)

U-turn bits#1845

Very easy (≈850)

Bit Rotation 2#1850

Very easy (≈850)

Plus and xor#2006

Easy (≈1000)

Stones#2787

Easy (≈1000)

Bitset#2802

Very easy (≈850)

Cubes - 3#2807

Very easy (≈850)

1-25 of 150