mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-09-20 07:43:04 +08:00
Update CocktailShakerSort.js
This commit is contained in:
parent
508e4d1313
commit
9c9f694caa
@ -48,11 +48,10 @@ export default class CocktailShakerSort extends Sort {
|
|||||||
swapped = true;
|
swapped = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Move the start point forward by one,
|
// Move the start point forward by one,
|
||||||
// because the item at the start point is already in its correct position.
|
// because the item at the start point is already in its correct position.
|
||||||
start += 1;
|
start += 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user