Frage im Vorstellungsgespräch bei McLeod Software

What is the difference between a stack and a queue?

Antwort im Vorstellungsgespräch

Anonym

1. Dez. 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