109. Single Number Among Triples
MediumMiscellaneous
In nums, every value appears exactly three times except one, which appears exactly once. Return that value using O(1) extra memory.
Example 1
Input: nums = [2, 2, 3, 2] Output: 3
Constraints
1 ≤ nums.length ≤ 3 · 10⁴Values fit in a 32-bit signed integer