"added a subtopic on uses of stacks" (#19287)

* "added a subtopic on uses of stacks"

* "made corrections to my pr as told by the collaborator"
This commit is contained in:
rgolu
2018-10-16 10:08:19 +05:30
committed by Quincy Larson
parent c1eebe28e0
commit 875d4c115c

View File

@ -163,3 +163,12 @@ int main ()
2
1
Out of loop
## Uses of Stack
1. Expression Evaluation and Conversion.
stacks are used to evaluate and convert expressions like prefx, postfix and infix expression.
2. In Recursive functions to keep information about the active functions or subroutines.
3. In Backtracking, as in DFS algorithm.
4. Memory management, run-time environment for nested language features. etc