随笔分类 -  算法

位图排序
摘要:$bitmap=array_fill(0,1,0); $arr =[1,4,3,6,7]; $size = PHP_INT_SIZE * 8; foreach ($arr as $key => $value){ $index = floor($value/$size); $pos = $value% 阅读全文

posted @ 2019-12-24 00:11 孤灯引路人 阅读(138) 评论(0) 推荐(0)

二叉搜索树实现
摘要:class Node { public $data; public $left; public $right; public function __construct($data){ $this->data=$data; } } class CreateTree{ public $tree; //二 阅读全文

posted @ 2019-12-23 23:50 孤灯引路人 阅读(245) 评论(0) 推荐(0)

导航