Single Number

Bit Manipulation ยท easy

Every element in `nums` appears twice except one. Implement `singleNumber(nums)` returning the element that appears once, using XOR.

Learning resources

Loading...

Run your code to see results.