GL
GrindLens
PatternsSheetsPricingQuestions
  1. Home
  2. /Patterns
  3. /Bit Manipulation - XOR Tricks
←All Patterns
Bit ManipulationEvidence Contributing

Bit Manipulation - XOR Tricks

Use XOR's self-cancelling property to isolate a unique or missing value among duplicates.

Practice Problems: 7
Difficulty: 3 Easy·4 Medium·0 Hard

Core technique

Review the technique, then try the mapped problems below. The right approach depends on each problem's constraints.

  • Core Strategy: Use XOR's self-cancelling property to isolate a unique or missing value among duplicates.

Canonical Practice Problems

7 problems
1.Find the DifferenceEasy
Solve on LeetCode↗
2.Missing NumberEasy
Solve on LeetCode↗
3.Single NumberEasy
Solve on LeetCode↗
4.Number of Unique XOR Triplets IMedium
Solve on LeetCode↗
5.Number of Unique XOR Triplets IIMedium
Solve on LeetCode↗
6.Single Number IIMedium
Solve on LeetCode↗
7.Sum of Two IntegersMedium
Solve on LeetCode↗

Curated Sheets Containing This Pattern

NeetCode All

4 problems

→

NeetCode 150

3 problems

→

Blind 75

2 problems

→

LeetCode Top Interview 150

2 problems

→

Striver A2Z

1 problem

→

Related Algorithmic Patterns

Bit Manipulation

Bit Manipulation - Counting/Shifting

GL
GrindLens

Precision pattern analytics and curated sheet tracking for algorithmic coding interview preparation.

Quick lookup:⌘Kor/

Platform

  • Patterns→
  • Sheets→
  • Pricing→

Community

  • Feedback
  • Report a bug
  • X
  • LinkedIn

© 2026 GrindLens. LeetCode is a trademark of LeetCode. GrindLens is an independent analytics platform and is not affiliated with or endorsed by LeetCode.

Terms of ServicePrivacy Policy