public class PrimUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PrimUtils.IntComparator |
Constructor and Description |
---|
PrimUtils() |
Modifier and Type | Method and Description |
---|---|
private static int |
med3(int[] array,
int a,
int b,
int c,
PrimUtils.IntComparator comparator) |
static void |
sort(int start,
int end,
int[] array,
PrimUtils.IntComparator comparator)
Sort the integer array from "start" inclusive to "end" exclusive in ascending order,
using the provided comparator.
|
public static void sort(int start, int end, int[] array, PrimUtils.IntComparator comparator)
private static int med3(int[] array, int a, int b, int c, PrimUtils.IntComparator comparator)