摘要:* 数据结构与算法Java实现 栈 * * @author 小明 * */ public class MyStack { private Node top;// 头指针 int size;// 长度 public MyStack() { top = null; size = 0; } // 进栈函数 ...
阅读全文
摘要:package com.list; /** * 数据结构和算法Java表示 双向链表 * * @version 1.0 * @author 小明 * */ public class MyDoublelinkedlist { private DoubleNode head;// 头结点 private DoubleNode end;// 尾结点 privat...
阅读全文
摘要:package com.list; /** * 数据结构与算法Java表示 * @version 1.0 * @author 小明 * */ public class MyLinkedList { private Node head;// 头结点 private int size;// 长度 public MyLinkedList() { h...
阅读全文