Opening your learning path
Progress is saved as you study.
Opening your learning path
Progress is saved as you study.
The Bitwise XOR - Finding Single/Missing Number pattern applies when you need the Bitwise XOR - Finding Single/Missing Number technique within the Bit Manipulation Patterns pattern. Its time complexity is O(n) and space complexity O(1). It is used in 5 problems on Thita, including Find the Difference, Missing Number and Single Number. Common variations are Bitwise Operations - Power of Two/Four Check and Bitwise DP - Counting Bits Optimization.
Use XOR properties to find single number, missing number, and duplicates.
Bitwise XOR - Finding Single/Missing Number is one of the 4 subpatterns of the Bit Manipulation Patterns pattern, which covers xOR tricks, counting bits, power-of-two checks, and Hamming weight. The whole pattern is about 1.5 hours of study. This subpattern is a depth topic for once the core techniques are automatic.
Master bit manipulation including XOR tricks, counting bits, power of two checks, and bit masking. Essential for optimization and low-level problems. Problems in this subpattern are usually searched for as single number, missing number, XOR trick, find duplicate XOR, leetcode 136, leetcode 268.
Read the theory for Bitwise XOR - Finding Single/Missing Number, then work the problems attached to it in the browser editor. Your solution runs against the problem's test cases, and the AI coach offers a hint about the technique you are missing rather than a finished solution. Progress is tracked per subpattern, so the Bit Manipulation Patterns tracker shows this one as covered once you have solved its problems.
Bitwise XOR - Finding Single/Missing Number is one lesson in a 16-pattern DSA course. If you are preparing end to end, work the interview-critical patterns first and use the pattern sheet as the checklist; if you are here for one technique, the Bit Manipulation Patterns guide is the shortest path back to the rest of it.
5 problems, easiest first.
Fetching theory for Bitwise XOR - Finding Single/Missing Number...