摘要: [抄题]: Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [ 阅读全文
posted @ 2018-04-17 22:17 苗妙苗 阅读(115) 评论(0) 推荐(0)
摘要: [抄题]: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. Example 1 Example 2 [暴力解法] 阅读全文
posted @ 2018-04-17 15:14 苗妙苗 阅读(120) 评论(0) 推荐(0)