1.

An error is reported when the stack is not empty at the end.(a) True(b) FalseI need to ask this question from Application of Stacks topic in portion Application of Stacks of Data Structures & Algorithms II have been asked this question in an internship interview.

Answer»

The correct option is (a) True

To explain: When the STACK contains ELEMENTS at the END, it means that the given string of parentheses is not BALANCED.



Discussion

No Comment Found

Related InterviewSolutions