可能重复: 在列表中查找单个数字
给定一组数字,除了一个数字,所有其他数字,出现两次.什么算法应该找到在数组中只出现一次的那个数字?
例
a[1..n] = [1,2,3,4,3,1,2]
应该返回4
algorithm
algorithm ×1