Computer Science, asked by angelfernandes6416, 1 year ago

Basic operation of stack and Queue?

Answers

Answered by pratyasha9187
0
The basic implementation of a stack is also called a LIFO (Last In First Out) to demonstrate the way it accesses data, since as we will see there are various variations of stack implementations. There are basically three operations that can be performed on stacks. They are 1) inserting an item into a stack (push).



Hope it helps plz mark as brainliest....

brijeshpbhkmgm92: hello
brijeshpbhkmgm92: dear
pratyasha9187: please mark as brainliest
Answered by san235
0
Stack is a collection of objects that works in LIFO (Last in First out) mechanism while Queue is FIFO (First in First out). This means that the object that is inserted first is removed last in a stack while an object that is inserted first is removed first in a queue.
Similar questions