122k views
0 votes
Consider the usual algorithm for determining whether a sequence of parentheses is balanced. What is the maximum number of parentheses that will appear on the stack AT ANY ONE TIME when the algorithm analyzes: (()(())(()))

a. 1
b. 2
c. 3
d. 4

User Rozumir
by
2.9k points

2 Answers

0 votes
In my opinion the providing question provided would be number c
User Manolis Karamanis
by
3.5k points
3 votes
either B or C

Explanation :
User Nazanin
by
3.6k points