Bit Manipulation
10 animated solutionsXOR as its own inverse, masks to test/set/clear bits, and shifting as multiplying by two. Counting bits and single-number puzzles fall out of a handful of identities. Every problem below plays as an animated walkthrough with solutions in Python, Java and C++. Companies that ask these most: Arista Networks, Box, Accenture.