Available question text
Given an array where each number appears either once or twice, return the bitwise XOR of all numbers that occur exactly twice (or 0 if none). The task is to identify elements with frequency two and combine them using XOR.
Related questions
Continue with questions that share topics or the same question type.
- Find the Count of Numbers Which Are Not Special
Coding
- Find All Lonely Numbers in the Array
Coding · Array · Counting · Hash Table
- Find All Numbers Disappeared in an Array
Coding
- Find Balanced Numbers in a Permutation
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3158. Find the XOR of Numbers Which Appear Twice
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source