摘要: 问题:一个整数数组里除了两个数之外,其他的数字都出现了两次。请写程序找出这两个只出现一次的数字。要求时间复杂度为O(n), 空间复杂度为O(1).(2012百度)#includeusing namespace std;int findFirst1(int num){ int n=0; while((... 阅读全文
posted @ 2015-04-25 16:51 Vae永Silence 阅读(189) 评论(0) 推荐(0) 编辑