摘要: function bubbleSort($arr){ $len = count($arr); if($len<=1) { return $arr; } for ($i=0;$i<$len;$i++) { for ($j=1;$j<$len-$i;$j++) { if($arr[$j-1]>$arr[ 阅读全文
posted @ 2017-02-20 12:45 helloworldlee 阅读(384) 评论(0) 推荐(0) 编辑