HomeGlossaryLIFO (last in, first out)TermLIFO (last in, first out)Last In, First Out: the element added last is removed first. A stack works this way; a queue works FIFO.The lesson that explains this term4.0What is a stack?StackLessons that use this term4.1.3Pop: removing an element4.3.1Balanced parentheses4.4.1Stack: exam questions and answers5.0What is a queue?5.6.1Deque: the double-ended queue5.7.1Queue: exam questions and answers← Whole glossary