Vidyalelo
Data Structure · Q181

Introduction to Data Structures

Programming · Data Structure · question 181

Q181

Consider the usual algorithm for determining whether a sequence of parentheses is balanced. The maximum number of parentheses that appear on the stack AT ANY ONE TIME when the algorithm analyzes: (()(())(()))?

A.
1
B.
2
C.
3
Answer
D.
4 or more

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board