码迷,mamicode.com
首页 > 其他好文 > 详细

leetcode--012 single number I

时间:2014-07-31 16:13:26      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   color   os   io   for   ar   

bubuko.com,布布扣

 

1 public int singleNumber(int[] A) {
2         int s=0;
3         for(int i=0;i<A.length;i++){
4             s=s^A[i];
5         }        
6         return s;
7     }

 

leetcode--012 single number I,布布扣,bubuko.com

leetcode--012 single number I

标签:des   style   blog   color   os   io   for   ar   

原文地址:http://www.cnblogs.com/thehappyyouth/p/3880655.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!