描述一个表用 desc employees过滤重复的部门 select distinct department_id from employees别名的三种方式: 1、空格 2、加as 3、" "(多个单词组成的别名必须加空格,要么用下划线分开)条件匹配日期的: where to_char(date...
分类:
数据库 时间:
2014-08-14 23:37:06
阅读次数:
455
Intersecting LinesTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 10942Accepted: 4917DescriptionWe all know that a pair of distinct points o....
分类:
其他好文 时间:
2014-08-14 23:27:38
阅读次数:
248
描述一个表用 desc employees过滤重复的部门 select distinct department_id from employees别名的三种方式: 1、空格 2、加as 3、" "(多个单词组成的别名必须加空格,要么用下划线分开)条件匹配日期的: where to_char(da.....
分类:
数据库 时间:
2014-08-14 19:27:39
阅读次数:
360
Description
A
Lexicographic Order
Input: Standard Input
Output: Standard Output
The alphabet of a certain alien language consists of n distinct symbols. The ...
分类:
其他好文 时间:
2014-08-14 14:11:48
阅读次数:
201
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example, Given 1->2...
分类:
其他好文 时间:
2014-08-14 01:01:07
阅读次数:
230
REPL
在Scala中的书籍中会提及REPL,REPL(Read-Eval-Print
Loop);这被称为“读取-求值-打印”循环。
不带参数的Scala方法通常不使用圆括号,例如,StringOps类的API显示它有一个distinct方法,不带(),其作用是获取字符串中不重复的字符。调用如下: print("hello".distinct);
Scaladoc
...
分类:
其他好文 时间:
2014-08-13 22:33:57
阅读次数:
281
个人第一道后缀数组题目。对于每一个后缀suffix(i),都有len-sa[i]个前缀(也即有len-sa[i]个不同的字符串),其中与排名前一位的后缀有height[i]个共同的前缀,最后所得到的新的字符串个数为len-sa[i]-height[i].因此这题只要求出sa以及height即可求得答...
分类:
其他好文 时间:
2014-08-12 18:14:44
阅读次数:
231
Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co...
分类:
其他好文 时间:
2014-08-12 03:00:33
阅读次数:
155
A题逗比了,没有看到Allaiare distinct. Allbiare distinct. 其实很水的。。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 #define mnx 100002...
分类:
其他好文 时间:
2014-08-11 17:06:02
阅读次数:
209
统计一个只由大写字母构成的字符串的,子串数目,这里指的是子串不是子序列,可以不连续,请注意然后我按照计数DP的思想,dp[i][j]表示长度为i的子串,最后一个字母为j然后为了去重,每一次dp的时候,记录这个时候最后一位所在的位数,而且之前用一个后缀记录之后有没有该字母,这样每次,从上一次的j所处的...
分类:
其他好文 时间:
2014-08-11 11:39:42
阅读次数:
148