Pergunta de entrevista da empresa Information Management Services

What is a stack? How is it different from a queue?

Resposta da entrevista

Sigiloso

22 de jul. de 2016

Stack is a abstract data type that works with collections. Kind of like with arrays. It uses the LIFO (last in first out) method for its contained objects as opposed to the FIFO (first in first out) method as with the queue.