题目:
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 the difference between i and j is at most k.翻译:
给...
分类:
其他好文 时间:
2016-03-07 15:06:41
阅读次数:
148
今天即成iPhone内购的时候出现了个duplicate symbol for architecture x86_64,c语言的枚举不能在Xcode直接使用所致,但是真机可以编译通过;后续更新 enum{IAP0p20=20,IAP1p100,IAP4p600,IAP9p1000,IAP24p600
分类:
其他好文 时间:
2016-03-05 16:19:30
阅读次数:
238
原题链接在这里:https://leetcode.com/problems/remove-duplicate-letters/ 题目: Given a string which contains only lowercase letters, remove duplicate letters so
分类:
其他好文 时间:
2016-03-04 13:10:37
阅读次数:
149
功能:用于计算命令执行的世界 语法: time command 例如: hbg@root:~/dl$ time ls111 apple.sh b.txt duplicate_samples fork_test3 getoopt.c log.sh printf.sh read_s.sh silent_
分类:
系统相关 时间:
2016-02-29 21:17:33
阅读次数:
242
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
分类:
其他好文 时间:
2016-02-28 16:39:58
阅读次数:
130
题目大意是,给定一个整数数组,判断其中是否存在两个不同的下标i和j,满足:| nums[i] - nums[j] | <= t 且下标:| i - j | <= k。...
分类:
其他好文 时间:
2016-02-26 17:15:01
阅读次数:
112
题意:给一个长度为n+1的整数序列,其中的元素的范围在[1,n]之间,所以一定有重复的数字,假设只有一种重复的数字(但是重复可能不止一遍),求这个重复的数字,要求空间复杂度O(1),时间复杂度小于O(n2),不可以修改序列。 解法:二分。二分重复的数字,每次遍历一遍数组,记录cnt为有多少个元素小于
分类:
其他好文 时间:
2016-02-25 15:28:34
阅读次数:
143
题目的大意是,给定一个整数数组,判断数组中是否包含重复的元素。若数组中任意一个数字出现了至少两次,函数返回true;否则,返回false。...
分类:
其他好文 时间:
2016-02-24 19:33:55
阅读次数:
206
The RANSAC algorithm is a learning technique to estimate parameters of a model by random sampling of observed data. Given a dataset whose data element
分类:
编程语言 时间:
2016-02-19 21:57:40
阅读次数:
324
java8不支持导致的,更新eclipse到4.4. http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/luna/R/eclipse-jee-luna-R-win32-x86_64.zip 参考: http://s
分类:
其他好文 时间:
2016-02-19 12:22:42
阅读次数:
158