+1 vote
in Data Structures & Algorithms I by (110k points)
In balancing parentheses algorithm, the string is read from?

(a) right to left

(b) left to right

(c) center to right

(d) center to left

This interesting question is from Application of Stacks in section Application of Stacks of Data Structures & Algorithms I

I got this question by my school teacher while I was bunking the class.

1 Answer

+1 vote
by (408k points)
selected by
 
Best answer
Correct option is (b) left to right

The best explanation: Any string is read by the compiler from left to right and not from right to left.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...