摘要: 1 package queue_radix; 2 3 public class Queue { 4 int[] queue; 5 6 public Queue(){ 7 queue = new int[0]; 8 } 9 10 public boolean isEmpty(){ 11 return 阅读全文
posted @ 2021-02-28 19:16 TRAODM 阅读(53) 评论(0) 推荐(0)
摘要: 1 package radixsort; 2 3 import java.util.Arrays; 4 5 public class RadixSort { 6 public static void main(String[] args) { 7 int[] arr = new int[]{3,55 阅读全文
posted @ 2021-02-28 16:55 TRAODM 阅读(40) 评论(0) 推荐(0)
摘要: 1 public class recursion { 2 public static void main(String[] args) { 3 int n = 5; 4 char a ='a'; 5 char b ='b'; 6 char c ='c'; 7 hanoi(10,a,b,c); 8 9 阅读全文
posted @ 2021-02-28 15:21 TRAODM 阅读(71) 评论(0) 推荐(0)
摘要: 1 package mergesort; 2 3 import java.util.Arrays; 4 5 public class MergeSort { 6 public static void main(String[] args) { 7 int[] arr = new int[]{11, 阅读全文
posted @ 2021-02-28 10:11 TRAODM 阅读(52) 评论(0) 推荐(0)
摘要: 1 package quicksort; 2 3 import java.util.Arrays; 4 5 public class QuickSort { 6 public static void main(String[] args) { 7 int[] arr = new int[]{11,9 阅读全文
posted @ 2021-02-28 00:37 TRAODM 阅读(52) 评论(0) 推荐(0)