InterviewSolution
Saved Bookmarks
| 1. |
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 expressionQuery is from Application of Stacks in portion Application of Stacks of Data Structures & Algorithms IThe question was posed to me in homework. |
|
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. |
|