+ 1

Can anyone explain me the working of stacks?

18th Dec 2016, 6:51 PM
khateeb anwer
khateeb anwer - avatar
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.
19th Dec 2016, 5:05 PM
David Daubner
David Daubner - avatar
0
suppose i finish filling up my stack like in a binary search tree ..the stack excretes out what it contains ..why
19th Dec 2016, 5:07 PM
khateeb anwer
khateeb anwer - avatar