摘要:
8.2:双向链表实现栈 底层都是双链表调整 1 public static class Node<T> { 2 public T value; 3 public Node<T> last; 4 public Node<T> next; 5 6 public Node(T data) { 7 valu 阅读全文
摘要:
8.1:双向链表实现双端队列 双端队列,玩的head 和tail指针 底层都是双链表调整 1、双向链表 节点1 public static class Node<T> { 2 public T value; 3 public Node<T> last; 4 public Node<T> next; 阅读全文
摘要:
8:栈和队列 逻辑概念: 栈:数据先进后出,犹如弹匣 队列:数据先进先出,好似排队 栈和队列的实现: 1、双向链表实现 2、数组实现 阅读全文