摘要: Problem: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inser 阅读全文
posted @ 2016-02-28 16:24 尾巴草 阅读(164) 评论(0) 推荐(0) 编辑
摘要: problem: Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number mus 阅读全文
posted @ 2016-02-28 16:15 尾巴草 阅读(148) 评论(0) 推荐(0) 编辑
摘要: problem: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two 阅读全文
posted @ 2016-02-28 15:49 尾巴草 阅读(194) 评论(0) 推荐(0) 编辑