Coding problems · by pattern

3 bit manipulation problems, solved step by step.

Problems where looking at the bits gives a shortcut: XOR cancelling pairs, and counts built from a number with its lowest bit removed. Each one is solved in 22 languages from brute force to optimal, with code you can run on the page.

0/3 solved
  1. Single NumberEasy
  2. Missing NumberEasy
  3. Counting BitsEasy