Bit Manipulation coding problems
Bit manipulation problems use AND, OR, XOR and shifts to count set bits, find the single number and build subsets fast.
18 problems: 11 easy, 6 medium, 1 hard. Free to read; a free account solves them and earns XP and Aura.
- Check if Binary Representation is PalindromePractice · +10 XP · bit manipulation, stringseasy
- Check Power of TwoPractice · +10 XP · bit manipulation, easyeasy
- Count Bits in RangePractice · +10 XP · bit manipulationeasy
- Count Numbers with Even Set BitsPractice · +10 XP · bit manipulation, loops, countingeasy
- Count Set BitsPractice · +10 XP · bit manipulation, loops, basiceasy
- Find Missing NumberPractice · +10 XP · bit manipulation, xor trickseasy
- Find the Single NumberPractice · +10 XP · bit manipulation, xor tricks, arrayseasy
- Find Unset BitsPractice · +10 XP · bit manipulation, beginnereasy
- Parity of Set BitsPractice · +10 XP · bit manipulation, loops, basiceasy
- Sort by Number of Set BitsPractice · +10 XP · sorting, counting sort, bit manipulationeasy
- Unique NumberPractice · +10 XP · bit manipulation, xor tricks, beginnereasy
- Count XOR PairsPractice · +20 XP · bit manipulation, hash map, prefix sumsmedium
- Distinct XOR Prefix SumsPractice · +20 XP · bit manipulation, prefix sums, hash setmedium
- Minimum XOR Sum of SubarraysPractice · +20 XP · bit manipulation, prefix sums, hash mapmedium
- Subarray XOR with TargetPractice · +20 XP · bit manipulation, hash map, prefix summedium
- XOR Pairs with Zero SumPractice · +20 XP · bit manipulation, hash map, prefix sumsmedium
- XOR Sequence PartitionPractice · +20 XP · bit manipulation, hash map, prefix sumsmedium
- Bitwise OR Subarray SumPractice · +30 XP · bit manipulation, prefix sums, data structureshard
Solve these free. Get paid in XP and Aura.
One tap with Google, no card. Every first accepted solve pays XP for the leaderboards and Aura for real goodies.
Other topics
Hash Map and Hashing101Arrays88Prefix Sums64SQL and Databases64Beginner Coding Problems60Graphs, BFS and DFS45Greedy41Sliding Window39Dynamic Programming37Sorting36Math and Number Theory36Strings35Two Pointers35Stack29Binary Search25Simulation25Recursion22Linked List20Trees20Heap and Priority Queue18Matrix and Grid18Queue and Deque16