mgechev / javascript-algorithms

💻 JavaScript implementations of computer science algorithms
https://mgechev.github.io/javascript-algorithms/
MIT License
7.83k stars 1.27k forks source link

Added object destructuring #153

Closed carlosherrera1113 closed 4 years ago

carlosherrera1113 commented 5 years ago

Added object destructuring where array value swaps were being swapped using a temp variable. This makes the algorithm easier to read and thus easier to understand.

mgechev commented 5 years ago

Responded your other comment with a suggestion on where the failures may come from.

mgechev commented 4 years ago

Closing due to inactivity.