Please enable JavaScript.
Coggle requires JavaScript to display documents.
STACK - Coggle Diagram
STACK
5 OPERATIONS IN A STACK
- create stack - creating an empty stack
-
-
- remove element from the stack (pop)
- add element to the stack (push)
IMPLEMENTATION OF STACK
STACK AS ARRAY - fixed sized stack, array item (top)
STACK AS LINKED LIST - dynamic size, node (data + link ), head
-
DEFINE
- is a dta structure that consist of homogenous (element of the same type) element in which the element are added and removed at on top of the stack
-