Given a graph G(V, E), a clique is a sub-graph g(v, e), so that for all vertex pairs v1, v2 in v, there exists an edge (v1, v2) in e. Maximum clique is the clique that has maximum number of
vertex.
...
分类:
其他好文 时间:
2014-09-11 08:47:58
阅读次数:
260
前言: 同事的业务场景是,按照cid、author分组,再按照id倒叙,取出前2条记录出来。 oracle里面可以通过row_number() OVER (PARTITION BY cid,author ORDER BY id DESC) 表示根据cid,author分组,在分组内部根据id排序,而此函数计算的值就表示每组内部排序后的顺序编号(组内连续的唯一的),而my...
分类:
数据库 时间:
2014-09-10 23:58:01
阅读次数:
672
包头:
create or replace package ProdureceCursorData is
type curtype is ref cursor;
type type_record is record
(
deptno NUMBER(2) ,
dname VARCHAR2(14),
loc VARCHAR2(13)
);
PR...
分类:
数据库 时间:
2014-09-10 22:30:51
阅读次数:
374
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1394思路:先求逆序数,然后有个技巧(真坑)......用线段树或者树状数组都可以做。移位的技巧就是逆序数是减少ant[i],而增加n-1-ant[i]的.#include #include #incl....
分类:
其他好文 时间:
2014-09-10 22:27:01
阅读次数:
298
1 version 1var Animal = function(){ this.init(this,arguments); }; //init Animal.prototype.init = function(color){ this.color = ...
分类:
其他好文 时间:
2014-09-10 22:24:21
阅读次数:
196
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:
其他好文 时间:
2014-09-10 22:23:11
阅读次数:
265
“Packbits” from ISO 12369参考TIFF 6.0 Specification,点击TIFF, Version 6.0;@Section 9: PackBits Compression> This section describes TIFF compression type 3...
分类:
其他好文 时间:
2014-09-10 21:01:51
阅读次数:
280
一、发现问题:启动 tomcat 控制台报该错误。二、原因:tomcat 的 jdk 版本和编译.class的 jdk 版本不一致。三、解决办法:步骤一:查看 MyEclipse 的 jdk 版本和位置:Window—>Preferences—>Java—>Installed JRES。设置如下图所...
分类:
Web程序 时间:
2014-09-10 20:59:31
阅读次数:
192
这个模块提供了一系列的函数操作。比如,operator.add(x,y)等于x+ya=[1,2,3]b=[5,6,7]c=map(operator.mul,a,b)c的值就为[5,12,21]abs(...)abs(a)--Sameasabs(a).add(...)add(a,b)--Sameasa+b.and_(...)and_(a,b)--Sameasa&b.concat(...)concat(a,b)--Sameasa+b,foraandbseq..
分类:
编程语言 时间:
2014-09-10 19:48:01
阅读次数:
310
Oracle嵌套表很少用,下面来研究下其如何存储的。用一个例子,一个用户对应对个部门。
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edi...
分类:
数据库 时间:
2014-09-10 19:32:21
阅读次数:
458