$data=I(‘post.‘,‘‘,‘trim‘); $rules = array( ???? array(‘name‘,‘‘,‘数据名称已存在‘,0,‘unique‘,1), ???? //array(验证字段1,验证规则,错误提示,[验证条件,附加规则,验证时间]), ???? array(‘ver...
分类:
Web程序 时间:
2014-08-16 01:12:29
阅读次数:
480
Unique Binary Search TreesGivenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a to...
分类:
其他好文 时间:
2014-08-16 00:59:29
阅读次数:
178
Unique Binary Search Trees IIGivenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your pr...
分类:
其他好文 时间:
2014-08-15 23:44:29
阅读次数:
280
题目:UVALive 5881 Unique Encryption Keys
分类:线段树,想法题
题意:给出n个数,然后有q次查询,每次查询 l---r 区间内有没有重复的数,有的话输出任意的,没有的话输出ok
分析:上去一看觉得这个题目可以不用线段树做,因为它是静态的,想了一个方法后来发现时不对的,后来规规矩矩用线段树了。
这个题目不能直接用线段树,否则的话无法...
分类:
其他好文 时间:
2014-08-15 19:42:39
阅读次数:
256
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diag...
分类:
其他好文 时间:
2014-08-15 09:32:37
阅读次数:
200
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:
其他好文 时间:
2014-08-14 20:16:29
阅读次数:
219
etherchannelloadbalancedst–mac以太网隧道负载方式基于目标MACMST(config)#spanning-treemodemst(config)#spanning-treemstconfiguration(config-mst)#nameCCIE(config-mst)#instance1vlan20,40,60spanning-treemst3rootprimaryspanning-treemst1,2rootsecondaryVLANACL(con..
分类:
其他好文 时间:
2014-08-13 15:06:17
阅读次数:
379
在model中定义public function rules(){ return array( array('Name,Email','required'), array('Email','unique','message'=>'{value...
分类:
其他好文 时间:
2014-08-12 18:31:14
阅读次数:
199
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-08-12 16:40:14
阅读次数:
157
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example, [1,1,2] have the following unique pe...
分类:
其他好文 时间:
2014-08-12 10:17:03
阅读次数:
142