![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
余年寄情思
这个作者很懒,什么都没留下…
展开
-
PHP 实现 插入排序
/** * 插入排序 * 将数组看成两部分 左侧为已排好序的 右侧为待排序的. * 当前元素后的每个元素分别与当前元素比较 */function insertSort($arr){ $len = count($arr); if($len < 2){ return $arr; } # 控制循环次数 for($i=1;$i<$len;$i+原创 2017-07-10 15:29:20 · 164 阅读 · 0 评论 -
时间空间复杂度 冒泡 选择 快速排序
复杂度 算法复杂度分为 时间复杂度和空间复杂度 时间复杂度是指执行算法所需要的计算工作量 空间复杂度是指执行这个算法所需要的内存空间定义 算法中重复操作执行次数 是问题规模 n 的某个函数 , 用 T(n) 表示 , 有某个辅助函数 f(n) 使得当 n 趋近于无穷大时 T(n)/f(n)的 极限值 为不等于 0 的常数 则称 f(n) 是 T(n) 同数量级函数 记做 T(n) =原创 2017-07-10 11:59:22 · 720 阅读 · 0 评论 -
CURL POST 数据
$postParams = array( 'userId' => $userId, # 商家ID 必填 'status' => $status, # 服务状态 0:过期或者未购买 1:购买成功 'token' => $token, ); //curl请求 $postJsonStr原创 2017-07-11 11:48:29 · 251 阅读 · 0 评论 -
CURL 请求数据
public static function curlPage($paramArr){ if (is_array($paramArr)) { $options = array( 'url' => false, #要请求的URL数组 'timeout' => 2, #超时时间 s )原创 2017-07-11 11:53:51 · 279 阅读 · 0 评论 -
《PHP高级知识进阶》系列技术文章整理收藏
《PHP高级知识进阶》系列技术文章整理收藏1session机制详解以及session的相关应用 http://www.lai18.com/content/409168.html2php采集自中央气象台范围覆盖全国的天气预报代码实例 http://www.lai18.com/content/368932.html3smarty自定义函数htmlcheckboxes用法实例 http://www.lai转载 2017-10-18 11:13:46 · 1210 阅读 · 0 评论