JS-Sorting-Algorithm icon indicating copy to clipboard operation
JS-Sorting-Algorithm copied to clipboard

一本关于排序算法的 GitBook 在线书籍 《十大经典排序算法》,多语言实现。

Results 24 JS-Sorting-Algorithm issues
Sort by recently updated
recently updated
newest added

Bumps [junit](https://github.com/junit-team/junit4) from LATEST to 4.13.1. Release notes Sourced from junit's releases. JUnit 4.13.1 Please refer to the release notes for details. JUnit 4.13 Please refer to the release notes...

dependencies

mod每次循环会乘10,导致counter每次初始化行都扩大十倍。但这是不必要的,counter的行能包含[-9,9]就可以了。

[here](https://github.com/hustcc/JS-Sorting-Algorithm/blame/master/9.bucketSort.md#L156) 声明了空数组,接着遍历空数组,没有意义啊 本来的目的应该是`count($buckets)`换成`$bucketCount`,给每个桶初始化吧

原有java版归并排序代码不是很好理解; 并且空间利用不高,各种`copyOfRange`; 本次完全进行重写

初始堆时, 应该从最后一个非叶子结点开始。 对应下标应为: `len / 2 - 1`

天天想着改进性能,改进个屁呢,冒泡排序谁tm要你考虑输入了,什么时候最快最慢只是用来举例,你tm说非得判断输入是不是有序的,显得你很聪明呗,真是服了,什么垃圾都能出教程