172. Single Number II

In an array, every element appears three times except for one. Find that element.
Example 1
Input: nums = [0,1,0,1,0,1,99]
Output: 99
Explanation: 99 is the only number that doesn't appear three times.
Example 2
Input: nums = [2,2,3,2]
Output: 3
Explanation: Only 3 appears once.
arraysbit manipulationmedium
JavaScript
Loading...
Line 1, Char 1