Advertisement

Advertisement banner

Advertisement

Advertisement banner
Science & TechnologyWhat is stack in data structure and algo...
D

| Updated on February 24, 2022 | science-and-technology

What is stack in data structure and algorithm?

1 Answers
G

@gaathaanand8548 | Posted on February 24, 2022

A stack data structure is an abstract data type that can push and pop from the top of a list which is continuously growing and shrinking due to temporary storage locations, called memory cells in data structures. The capacity of a stack data structure is limited by the number of memory cells allocated to it, so when all cells have been occupied and no space for new items remains, the stack becomes full.

Article image

0 Comments