罗列出项目使用到的注解,而自己不清楚属性意思的,或者是不算特别清楚的注解 @Column —— 注解声明了属性到列的映射。该注解有如下的属性 ? name? 可选,列名(默认值是属性名) ? unique 可选,是否在该列上...
分类:
系统相关 时间:
2014-07-22 09:13:36
阅读次数:
305
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-07-22 00:28:36
阅读次数:
169
本节,我们将对leetcode上有关DP问题的题目做一个汇总和分析。
1.题目来源
Interleaving String
动态规划 二叉树
Unique Binary Search Trees 动态规划
二叉树
Word Break 动态规划
N/A
Word Break II 动态规划
N/A
Palindrome Partitioning 动态规划
N/A
...
分类:
其他好文 时间:
2014-07-21 15:21:05
阅读次数:
189
modelarray('code', 'unique', 'criteria' =>array('condition' =>'schoolid=:schoolid','params' => array(':schoolid'=> $this->schoolid)))Controller$model-...
分类:
其他好文 时间:
2014-07-21 14:21:01
阅读次数:
229
![这些选项有什么用?][1] **PK** Belongs to primary key 作为主键 **NN** Not Null 非空 **UQ** Unique index 不能重复 **BIN** Is binary column 存放二进制数据的列 **UN** Unsigned data type 无符号数据类型...
分类:
数据库 时间:
2014-07-21 10:38:22
阅读次数:
244
The Unique MSTTime Limit:1000MSMemory Limit:10000KTotal Submissions:19847Accepted:6959DescriptionGiven a connected undirected graph, tell if its minim...
分类:
其他好文 时间:
2014-07-21 00:23:08
阅读次数:
303
最小生成树的性质
MST性质:设G = (V,E)是连通带权图,U是V的真子集。如果(u,v)∈E,且u∈U,v∈V-U,且在所有这样的边中,
(u,v)的权c[u][v]最小,那么一定存在G的一棵最小生成树,(u,v)为其中一条边。
构造最小生成树,要解决以下两个问题:
(1).尽可能选取权值小的边,但不能构成回路(也就是环)。
(2).选取n-1条恰当的边以连接网的n个顶点。...
分类:
其他好文 时间:
2014-07-19 23:27:19
阅读次数:
285
最小生成树之prim算法 边赋以权值的图称为网或带权图,带权图的生成树也是带权的,生成树T各边的权值总和称为该树的权。最小生成树(MST):权值最小的生成树。生成树和最小生成树的应用:要连通n个城市需要n-1条边线路。可以把边上的...
分类:
其他好文 时间:
2014-07-19 18:20:31
阅读次数:
367
Another recursion-style problem.1. Each count of sub-solution with a certain root should contribute to final count2. With a certain root, the num of l...
分类:
其他好文 时间:
2014-07-18 18:18:01
阅读次数:
187
SQL Server中有五种约束类型,分别是 PRIMARY KEY约束、FOREIGN KEY约束、UNIQUE约束、DEFAULT约束、和CHECK约束。查看或者创建约束都要使用到 Microsoft SQL Server Managment Studio。
1. PRIMARY KEY约束
在表中常有一列或多列的组合,其值能唯一标识表中的每一行。这样的一列或多列成为表的主键(Primar...
分类:
数据库 时间:
2014-07-18 17:03:18
阅读次数:
359