What are Stacks? Give an example where they are useful.
Page 1 of 1
What are Stacks? Give an example where they are useful.
A Stack is a linear structure in which insertions and deletions are always made at one end i.e the top - this is termed as last in, first out (LIFO). Stacks are useful when we need to check some syntex errors like missing parentheses.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|