1. Computer Science Engineering (CSE)
  2. Data Structures (DS)
  3. Linear Data Structures -Stacks and Queue...
  4. Consider the usual algorithm for determi...

Consider the usual algorithm for determining whether a sequence of parentheses is balanced. Suppose that you run the algorithm on a sequence that contains 2 left parentheses and 3 right parentheses (in some order). The maximum number of parentheses that appear on the stack AT ANY ONE TIME during the computation?

A. 1
B. 2
C. none
D. none
Answer» B. 2
View all MCQs in:   Data Structures (DS)