摘要: 1 <?php 2 3 //二分查找 4 public function bin_search($arr,$k,$low = 0,$high = 0){ 5 if($high == 0){ 6 $high = count($arr) - 1; 7 } 8 $mid = intval(($low + 阅读全文
posted @ 2017-02-05 15:00 zeoo 阅读(267) 评论(0) 推荐(0)