摘要:
/** * 桶排序 */ public class BucketSort { public static void main(String[] args) { int[] array = {23,14,47,71,32}; int digit = digit(array); bucketSort(a 阅读全文
posted @ 2021-10-16 20:48
code-G
阅读(38)
评论(0)
推荐(0)
摘要:
import java.util.PriorityQueue; /** * 一个几乎有序的数组,任意一个元素移动到有序位置 * 需要移动的距离小于等于K */ public class K_DistanceSort { public static void main(String[] args) { 阅读全文
posted @ 2021-10-16 20:32
code-G
阅读(101)
评论(0)
推荐(0)
摘要:
public class HeapSort { public static void main(String[] args) { int[] array = {3,4,7,1,2}; heapSort(array); for (int i : array) { System.out.println( 阅读全文
posted @ 2021-10-16 20:25
code-G
阅读(47)
评论(0)
推荐(0)

浙公网安备 33010602011771号