Move the partitioning algorithms in separate files

Author: mgechevCreated Jan 25, 2015Updated Oct 15, 2024
Labelsenhancement

Lomuto's and Hoare's partitioning functions could be reused across different algorithms.

It'll be a good idea to put them in separate files.

Source: mgechev/javascript-algorithms