Problem I’m trying to create a function with has 5 input parameters and returns the average of the 3 biggest. […]

# Category: Sorting

## Sort 3 numbers in Common Lisp with the minimum number of operations

Problem I’m wondering is the following function returns a list of three numbers sorted in ascending order with the minimum […]

## In-Place Quicksort in Python

Problem Code is below. I’d like to know if this is a solid/efficient implementation of the in-place quicksort algorithm and […]

## Slow merge sort

Problem template<class Compare, class Iterator> void merge_sort(Iterator start, Iterator fin, int sort_type) { Compare comp; typedef typename iterator_traits<Iterator>::value_type _value_type; //black […]

## Sorting CSV table in Powershell

Problem I’m wondering if some PS gurus can advise on whether my method for sorting and recombining some data fields […]

## Sorting an array in alphabetical order

Problem I’m looking to get some feedback on this program I wrote – ways I could make it simpler or […]

## Sorting colors by the name of the color

Problem I was in need to sort Colors, so the first thing that I tried was this: Arrays.sort(new javafx.scene.paint.Color[] {Color.ALICEBLUE},Color.AZURE,Color.BLUEVIOLET,Color.AQUA,…); […]

## Bubble, selection, and insertion sorting

Problem The following programs are bubble sorting, selection sorting and insertion sorting. As most of the programs online or in […]

## Merge sort a given list in Python

Problem Problem: Implement merge sort in python. Don’t use Python’s built in sort or sorted. Assume your inputs will be […]

## HackerRank CountingSort 1 in C#

Problem Comparison Sorting Quicksort usually has a running time of n x log(n), but is there an algorithm that can […]