摘要: ​ 一、先定义一个数组 $arr = [1, 43, 54, 62, 21, 66, 32, 78, 36, 76, 39, 2]; 二、代码实现冒泡排序 function bubbleSort($arr){ $count=count($arr); for ($i=1;$i<$count;$i++) 阅读全文
posted @ 2021-09-08 08:30 锕果先生 阅读(83) 评论(0) 推荐(0)