题目:leetcode
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.
Try to solve it in linear time/space.
Return 0 if the array contains less than 2...
分类:
编程语言 时间:
2015-03-06 11:23:28
阅读次数:
248
Magic number/stringIf statement, you should always use single line or bracketsProvide default value of EnumDifference between abstract class and inter...
分类:
其他好文 时间:
2015-03-06 09:57:24
阅读次数:
178
relationship -A "relationship" segue is the segue between a container view controller and its child or children -- so, the initial controller of a nav...
分类:
其他好文 时间:
2015-03-06 09:34:00
阅读次数:
271
3026 - Period
Time limit: 3.000 seconds
For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the prefi...
分类:
编程语言 时间:
2015-03-05 22:23:08
阅读次数:
173
1. 笛卡尔集 select * from emp, dept; 2. 等值连接 select?ename, job from emp, dept where emp.deptno=dept.deptno; 3. 非等值连接 select ename, grade from emp, salgrade where sal between losal and his...
分类:
数据库 时间:
2015-03-05 19:39:54
阅读次数:
197
http://www.linkedin.com/groups/Difference-between-elasticsearch-MongoDB-3393294.S.5887644059169730563But you need to consider: Elasticsearch is an ind...
分类:
数据库 时间:
2015-03-05 19:19:01
阅读次数:
181
what is different between %s and %0s?(%s和%零s)%s prints the string as it is with spaces at the begining if string contentsare less than string variable...
分类:
其他好文 时间:
2015-03-05 19:02:18
阅读次数:
855
Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking num...
分类:
其他好文 时间:
2015-03-05 00:13:48
阅读次数:
196
transfer is to relocate/move transmit is to communicate/send Transfer and Transit, are used with things we can touch as the same meaning of moving or ...
分类:
其他好文 时间:
2015-03-04 19:05:16
阅读次数:
244
比较运算符:> 大于,= 大于等于,,^= 不等于逻辑运算符运算的优先顺序:NOT > AND > OR (如果要改变优先顺序,可以使用括号)特殊运算符 :[NOT]BETWEEN…AND…:用于测试是否在范围内;[NOT]IN (…):用于测试是否在列表中;[NOT]LIKE:用于进行模式匹配;I...
分类:
数据库 时间:
2015-03-04 16:24:11
阅读次数:
441