- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 TP5 Validate验证规则
系统内置的验证规则如下:格式验证类require 验证某个字段必须,例如:'name'=>'require'number 或者 integer 验证某个字段的值是否为数字(采用filter_var验证),例如:'num'=>'number'float 验证某个字段的值是否为浮点数字(采用filter_var验证)
2017-09-29 00:31:25 2926
原创 各排序算法最好最坏平均情况下的时间复杂度
方式: 平均 最坏 最好插入 n^2 n^2 n希尔 n^1.3 / /冒泡 n^2 n^2 n快速 nlogn n^2 nlogn选择 n^2 n^2 n^2堆排 nlogn nlogn nlogn归并 nlogn nlogn nlogn基数 d(n+r) d(n+r) d(n+r)其中最坏为nlogn的有 堆排 和 归并
2017-09-13 15:16:58 22365
原创 2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛 H (简单DP)
In this winter holiday, Bob has a plan for skiing at the mountain resort.This ski resort has MM different ski paths and NN different flags situated at those turning points.The ii-th path fro
2017-09-09 15:16:05 328
原创 最长递增子序列长度(动态规划)
状态方程:MaxLen (1) = 1MaxLen (k) = Max { MaxLen (i)+1:1当然丢出一个状态方程可能会比较懵逼,讲道理过一段时间我再回来看可能也会懵逼,所以我得举一个小例子来讲一下给定的数组为{5,6,7,1,2,8},则MaxLen(0)=1, MaxLen(1)=2, MaxLen(2)=3, MaxLen(3
2017-09-07 21:25:58 417
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人