General
Bit manipulation - is it worth learning for interviews?
8 months ago
414
I've been avoiding bit manipulation because it feels like a niche topic. But I keep seeing it pop up in Google and Amazon interviews.
Questions I've seen:
- Single number (XOR trick)
- Counting bits
- Power of 2
- Reverse bits
Are these common enough to warrant dedicated study time? Or should I focus on more frequently asked topics like trees and DP?
Also, any good resources for understanding bit manipulation intuitively?
bit-manipulationinterview-prepdiscussiondsa