Can You Explain Different Applications Of Stack In Data Structure?

5

5 Answers

Anonymous Profile
Anonymous answered
1-) to check wither a given string if palindrome or not.
2-) to convert infix to post fix and prefix .
3-) To evaluate post fix expiration .
4-) to check the right order of parenthesis  of given expiration.
Anonymous Profile
Anonymous answered
Stack Data Structure having one end from which we can enter data and retrieve data. Stack follow LIFO rule, which means (if "data is entered first it will be retrieve in last" of all existing element. If "data is entered last it will be retrieved first" of all).
Anonymous Profile
Anonymous answered
Explain the use of stack in recursion process/
Anonymous Profile
Anonymous answered
A stack is used for LIFO (last in, first out) or for FIFO (first in first out). That means when ever you store the data it will be stored in form of table. You can store the data in first row and can take out the data from first row or store the data in last row and can take out the data from first row. Can't take out the data from the middle rows.

Answer Question

Anonymous