链队列 实际上就是单链表,只是规定了删除在队头进行,添加在队尾进行. 链队列代码结构 package list.queue; public interface Queuable<T>; public class QueueNode<T>; public class LinkedQueue<T>; package list; public class TestLinkedQueue; 链队列公共接口 package list.queue; public interface…
今天我们来了解一下python的队列(Queue) queue is especiall useful in threaded programming when information must be exchanged safely between multiple threads. 队列就是一个有顺序的容器,可以靠顺序把他分成这几类. FIFO队列和LIFO队列 FIFO,即first in first out ,数据是先进先出,而LIFO队列是last in first out ,数据后进…