上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 57 下一页
摘要: /** * @desc: 栈结构-单链表实现 * @author: 毛会懂 * @create: 2020-12-29 18:03:00 **/ public class MyStack<T> implements Iterable<T>{ private Node head; //头节点,指向栈顶 阅读全文
posted @ 2020-12-31 13:42 毛会懂 阅读(104) 评论(0) 推荐(0) 编辑
摘要: /** * @desc: 双链表实现 * @author: 毛会懂 * @create: 2020-12-28 13:58:00 **/ public class MyDoubleLinkList<T> implements MyList<T> { //头指针 private Node head; 阅读全文
posted @ 2020-12-31 13:40 毛会懂 阅读(89) 评论(0) 推荐(0) 编辑
摘要: package com.rongyi.platform.game.web.controller; import java.util.Iterator; /** * @desc: 线性结构-单链表实现 * @author: 毛会懂 * @create: 2020-12-25 15:11:00 **/ 阅读全文
posted @ 2020-12-31 13:38 毛会懂 阅读(95) 评论(0) 推荐(0) 编辑
摘要: /** * @desc : 线性接口定义,继承Iterable接口,目的是要foreach * @author : 毛会懂 * @create: 2020/12/25 14:22:00 **/ public interface MyList<T> extends Iterable<T> { //增加 阅读全文
posted @ 2020-12-25 15:01 毛会懂 阅读(75) 评论(0) 推荐(0) 编辑
摘要: /** * @desc: 归并排序 * @author: 毛会懂 * @create: 2020-12-24 11:17:00 **/ public class Merge { public static void sort(Comparable[] arr){ int low = 0; int h 阅读全文
posted @ 2020-12-24 15:52 毛会懂 阅读(129) 评论(0) 推荐(0) 编辑
摘要: /** * @desc: 快速排序 * @author: 毛会懂 * @create: 2020-12-24 14:01:00 **/ public class Fast { public static void sort(Comparable[] arr){ sort(arr,0,arr.leng 阅读全文
posted @ 2020-12-24 15:50 毛会懂 阅读(217) 评论(0) 推荐(0) 编辑
摘要: /** * @desc: 希尔排序 * @author: 毛会懂 * @create: 2020-12-23 14:21:00 **/ public class Shell { public static void sort(Comparable[] arr){ int n = arr.length 阅读全文
posted @ 2020-12-23 16:40 毛会懂 阅读(75) 评论(0) 推荐(0) 编辑
摘要: /** * @desc:冒泡排序 * @author: 毛会懂 * @create: 2020-12-23 11:39:00 **/ public class Bubbling { public static void sort(Comparable[] arr){ for(int i = arr. 阅读全文
posted @ 2020-12-23 16:33 毛会懂 阅读(105) 评论(0) 推荐(0) 编辑
摘要: /** * @desc: 选择排序 * @author: 毛会懂 * @create: 2020-12-23 13:52:00 **/ public class Selection { public static void sort(Comparable[] arr){ for(int i = 0; 阅读全文
posted @ 2020-12-23 16:24 毛会懂 阅读(96) 评论(0) 推荐(0) 编辑
摘要: /** * @desc: 插入排序 * @author: 毛会懂 * @create: 2020-12-23 13:25:00 **/ public class Insertion { public static void sort(Comparable[] arr){ for(int i = 1; 阅读全文
posted @ 2020-12-23 16:16 毛会懂 阅读(127) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 57 下一页