Javascript – If/else in quick sort algorithm (js)
I'm currently learning some sorting algorithms and I made my realisation of quick sort, but it didn't work properly. Instead of just sorting the array, it deleted duplicate values. Here is my code: function quickSort(array) { if (array.length <= 1)…