Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. 数组中只有一个数字出现了一次,其他数字都出现了3次。找出这个只出现一次的数字。
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. 数组中有两个数字仅出现一次,其余数字都出现两次。找出仅出现一次的这两个数字。