Back to DSA sheet

Single Number

EasyBit Manipulation
Open on LeetCodeAmazonGoogle

Every element appears twice except for one. Find that single element in linear time and constant space.

Constraints
  • 1 <= n <= 3 * 10^4
  • Each element appears twice except one
Sheets
Blind 75Grind 75NeetCode 150NeetCode 250
single-number.cpp
Loading editor
Custom input (stdin)
Output

Run your code to see its output.