Problem I recently coded the Dutch national flag problem in Java and wrote some tests. The array in zero-indexed. Please […]

# Category: Sorting

## Code for sorting items in recyclerView

Problem I’m have recyclerView which is needed for displayed for show list of my audio records. I added the ability […]

## Find the intervals which have a non-empty intersection with a given interval

Problem The problem is the following: I have a list intervals which consists of tuples of the form (start, end) […]

## Frequency counter utility class

Problem Some very common tasks that keep popping up from time time: Find the most frequent something in a collection […]

## Comparator based on Double values in Java

Problem I have class point that represents point in 2D and I want to sort these points once based on […]

## QuickSort Algorithm (Python)

Problem This is my implementation of Quick Sort Algorithm : def quick_sort(sequence): if len(sequence)<= 1: return sequence else: pivot = […]

## Comb Sort in VBA

Problem Playing off Robust Bubble Sort in VBA and as suggested by @Henrik, I took a look at comb sort […]

## Bubble sorting in C

Problem I’ve been into algorithms lately, so I wanted to apply a simple algorithm using a language of my choice, […]

## How can I make my Merge Sort Code In C more secure, effective and efficient

Problem I have been implementing the merge-sort algorithm for sorting the data for a long time, each time I use […]

## Find all k points which are closest to origin

Problem We have a list of points on the plane. Find the K closest points to the origin (0, 0). […]