Java数据结构: 栈(Stack)和队列(Queue)总结
In a LIFO data structure, the newest element added to the queue will be processed first.
Different from the queue, the stack is a LIFO data structure. Typically, the insert operation is called push in a stack. Similar to the queue, a new element is always added at the end of the stack. However, the delete operation, pop, will always remove the last element which is opposite from the queue.
本文作者:Kane,转载请注明原文链接:https://www.cnblogs.com/hackerk/articles/16365175.html