+ 1
Can anyone explain me the working of stacks?
2 Answers
+ 1
Stack is a data structure that follows the principle LIFO - Last In First Out. It means that the last element you add to stack is the first you take out.
0
suppose i finish filling up my stack like in a binary search tree ..the stack excretes out what it contains ..why