标签:single enum java ++ amp solution number res class
class Solution { public int singleNumber(int[] nums) { int res=0; for(int i=0;i<32;i++) { int sum=0; for(int j=0;j<nums.length;j++) sum+=(nums[j]>>i)&1; res|=(sum%3)<<i; } return res; } }
标签:single enum java ++ amp solution number res class
原文地址:http://www.cnblogs.com/asuran/p/7637022.html