trekhleb / javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
MIT License
188.3k stars 30.25k forks source link

Add CombSort #931

Open chfleury opened 2 years ago

chfleury commented 2 years ago

CombSort is a quite good algorithm. It improves BubbleSort using the gap instead of just swapping neighbors.

chfleury commented 2 years ago

I know this PR is not mergeable, but I implemented CombSort so check it out: https://github.com/trekhleb/javascript-algorithms/pull/932