Pregunta de entrevista de Uber

Explain the difference between a Queue and a Stack?

Respuesta de la entrevista

Anónimo

12 de jul de 2018

A queue is a first-in, first-out data structure, whereas a Stack is a last-in, first-out data structure.