Skip to content

Topic 11 of 21

Bit Manipulation Problems

Checking and setting bits, counting set bits, powers of two, XOR tricks and generating the power set.

13 bit manipulation problems (10 easy, 3 medium) with LeetCode and GeeksforGeeks links.

Your progress

– / 13 solved

Easy
–/10
Medium
–/3
Hard
–/0
  1. Introduction to Bit Manipulation [Theory]EasyGFG
  2. Check If the I-th Bit Is Set or NotEasyGFG
  3. Check If a Number Is Odd or NotEasyGFG
  4. Check If a Number Is Power of 2 or NotEasyLeetCodeGFG
  5. Count the Number of Set BitsEasyGFG
  6. Set/Unset the Rightmost Unset BitEasyGFG
  7. Swap Two NumbersEasyGFG
  8. Divide Two Integers Without Using Multiplication, Division and Mod OperatorMediumLeetCodeGFG
  9. Count Number of Bits to Be Flipped to Convert A to BMediumLeetCode
  10. Find the Number That Appears Odd Number of TimesEasyLeetCodeGFG
  11. Power SetMediumLeetCodeGFG
  12. Find XOR of Numbers from L to REasyGFG
  13. Find the Two Numbers Appearing Odd Number of TimesEasyGFG