4 results for: quicksort
Mastering array sorting in JavaScript: a guide to the sort() function
In this article, I will explain the usage and potential of the sort() function in JavaScript. What does the sort() function do? The sort() function allows you to sort the elements of an array object. It can sort the elements in either the default ascending order or according to a custom sorting…
Category : Javascript 29-05-2023 by Janeth Kent
The most popular Array Sorting Algorithms In PHP
There are many ways to sort an array in PHP, the easiest being to use the sort() function built into PHP. This sort function is quick but has it's limitations, especially when sorting things like dates as PHP usually guesses which value is higher than the other and can produce…
Category : Php 25-08-2020 by Luigi Nori
Java Sorting Algorithms: Quick Sort
Welcome back to this overview about the Java world! Today, we are going to talk about a renowned sorting algorithm: the Quick Sort. The Quick Sort is not very suitable for educational purposes because its implementation may not be trivial, but at the performance level it offers some advantages that are not indifferent, unlike…
Category : Java 14-12-2019 by Alessio Mungelli
Implementing Quicksort algorithm in Javascript
We've been wanting to write an article about sorting algorithms for some time now because sometimes we forget how useful they can be when we want to optimize our code. So yesterday we played with the quicksort algorithm in Javascript (one of the most efficient when you have to order arrays).…
Category : Javascript 16-08-2019 by Janeth Kent