Frage im Vorstellungsgespräch bei Ziffity

What is data structure ? Explain stack

Antwort im Vorstellungsgespräch

Anonym

14. März 2024

A stack is a linear data structure that follows the LIFO (Last-In-First-Out) principle. This means that the last element added to the stack is the first element to be removed. Stacks are often used to store temporary data, such as function parameters or local variables. They can also be used to implement other data structures, such as queues and linked lists.