数据结构
Wings251
这个作者很懒,什么都没留下…
展开
-
复习栈和队列
Stack类:栈类 过时 public class Stack<E> extends Vector<E> Queue:队列类 Deque:双端队列(栈操作建议使用) public class LinkedList<E> extends AbstractSequentialList<E> implements List<E...原创 2019-12-04 11:08:13 · 175 阅读 · 1 评论 -
数据结构乱七八糟的复习
复习循环队列: public class QueueTest { private int[] array; private int front; private int rear; public QueueTest(int capacity) { this.array = new int[capacity]; } public void enQueue(int eleme...原创 2019-11-26 16:17:40 · 100 阅读 · 0 评论 -
复习LinkedList操作
public class LinkedListTest { private Node head; private Node last; private int size; // 插入 public void insert(int data, int index) throws Exception { if (index < 0 || index > size) ...原创 2019-11-15 00:28:50 · 104 阅读 · 0 评论