摘要: 问题: Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exi 阅读全文
posted @ 2016-07-09 22:08 绵绵思远道 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 题目: According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician J 阅读全文
posted @ 2016-07-09 15:59 绵绵思远道 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 问题: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and 阅读全文
posted @ 2016-07-09 14:09 绵绵思远道 阅读(135) 评论(0) 推荐(0) 编辑