冒泡排序错误
Closed this issue · 7 comments
778629322 commented
冒泡排序正确结果应该是
function bubbleSort(list) {
for (let i = 0; i < list.length; i++) {
for (let j = 0; j < list.length - 1 - i; j++) {
if (list[j] > list[j + 1]) {
[list[j], list[j + 1]] = [list[j + 1], list[j]]
}
}
}
return list
}
LaamGinghong commented
麻烦你提一个pr修复
778629322 commented
不只是这个排序有问题,其它排序有的也有问题,我没全看
778629322 commented
还想请教个问题,你本地是怎么支持 : 路径的
LaamGinghong commented
什么意思
778629322 commented
778629322 commented
windows是不支持带有 : 文件路径的
LaamGinghong commented
帮不了你,我用的是mac