+1 vote
in Data Structures & Algorithms I by (110k points)
Which application of stack is used to ensure that the pair of parentheses is properly nested?

(a) Balancing symbols

(b) Reversing a stack

(c) Conversion of an infix to postfix expression

(d) Conversion of an infix to prefix expression

Query is from Application of Stacks in portion Application of Stacks of Data Structures & Algorithms I

The question was posed to me in homework.

1 Answer

+1 vote
by (408k points)
selected by
Best answer
Right choice is (a) Balancing symbols

Easy explanation - Balancing symbols application ensures that the pair of parentheses are properly nested while reversing stack reverses a stack.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.