Rockwall

导航

2016年8月13日 #

LeetCode 【Single Number I II III】

摘要: Given an array of integers, every element appears twice except for one. Find that single one. 思路: 最经典的方法,利用两个相同的数异或结果为0的性质,则将整个数组进行异或,相同的数俩俩异或,最后得到的就是 阅读全文

posted @ 2016-08-13 18:27 Rockwall 阅读(216) 评论(0) 推荐(0)