DEV Community

Discussion on: Quick Sort

Collapse
sakura90 profile image
Patrick Chan

Haven't seen quick sort articles for quite a long time. Did you mean to export the quick sort function not the swap function actually?

Collapse
ricardo_borges profile image
Ricardo Borges Author • Edited on

Actually, on the project where I'm implementing these algorithms, that swap function is in a separated module for reuse, and I copied it only to show its implementation on this example, and I forgot to remove the export.

Thank you for letting me know.