mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 08:16:50 +08:00
Added Wikipedia link | CombSort
This commit is contained in:
@ -12,6 +12,8 @@
|
|||||||
* which does the actual swap, is modified such that gap between swapped
|
* which does the actual swap, is modified such that gap between swapped
|
||||||
* elements goes down (for each iteration of outer loop) in steps of
|
* elements goes down (for each iteration of outer loop) in steps of
|
||||||
* a "shrink factor" k: [ n/k, n/k2, n/k3, ..., 1 ].
|
* a "shrink factor" k: [ n/k, n/k2, n/k3, ..., 1 ].
|
||||||
|
*
|
||||||
|
* Wikipedia: https://en.wikipedia.org/wiki/Comb_sort
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function combSort (list) {
|
function combSort (list) {
|
||||||
|
Reference in New Issue
Block a user