Bit Manipulation

位运算的题大多较为灵活,涉及较多的按位与/或/异或等特性。

Reference

  • 位运算简介及实用技巧(一):基础篇 | Matrix67: The Aha Moments
  • cc150 chapter 8.5 and chapter 9.5