Unique Element Among Triples
Given an integer array where every element appears exactly three times except for one element that appears only once, find that unique element. Solve it in linear time with constant extra space.
Given an integer array where every element appears exactly three times except for one element that appears only once, find that unique element. Solve it in linear time with constant extra space.