Pregunta de entrevista de McLeod Software

What is the difference between a stack and a queue?

Respuesta de la entrevista

Anónimo

1 dic 2021

A stack is a LIFO (last in first out) data structure with data being inserted from bottom up. A queue is a FIFO (first in first out) data structure with data bring inserted from the rear but only accessible from the front.

1