Writing A Generic Stable Sort
Writing A Generic Stable Sort
One more post on writing generic algorithms. Let’s take a non-trivial non-generic algorithm and write a generic version. We’ll use a Java version of merge sort, and also look at some other interesting things we might do to a Java algorithm when converting it to Swift. Why bother with a merge sort? Well, the standard library comes with a very efficient in-place sort, based on the introsort, but…
View On WordPress

















