标签:
/* * 136. Single Number * 2016-5-22 by Mingyang */ public int singleNumber(int[] nums) { int len=nums.length; if(nums==null||len==0) return 0; int res=0; for(int i=0;i<len;i++){ res=res^nums[i]; } return res; }
标签:
原文地址:http://www.cnblogs.com/zmyvszk/p/5518667.html