DOKICODE
Study room

Bit Manipulation

Bit manipulation treats an integer as a row of switches. Many problems get simple once you look at one bit at a time: XOR cancels pairs, AND can only lose bits, and OR can only gain them.

The nine chapters start with the basics, cover XOR and AND/OR properties, splitting a problem bit by bit, trial filling from the highest bit down, bitwise identities and linear basis, then end with constructive and mixed problems. It suits anyone who tends to skip bit problems and wants a set of them in a sensible order.

95 problemsRating 1181–29189 Chapters
Open the study room

Want company while you work through this list? Sign in, open the study room, and your heroine will bring you the problems one at a time.

I. Fundamentals

II. XOR Properties

III. AND / OR Properties

IV. Bit Contribution & Splitting

V. Trial Filling Technique

VI. Bitwise Identities

VII. Linear Basis

VIII. Constructive Bit Problems

IX. Miscellaneous

It comes fifth on Track 1, after Data Structures, but the order is only a suggestion, so you can open it from the full catalog whenever you like.

Ratings come from zerotrac's LeetCode contest ratings. Some problems have no zerotrac rating and are marked Unrated.

Open the study room