InterviewSolution
Saved Bookmarks
| 1. |
Which of the following statement is incorrect with respect to balancing symbols algorithm?(a) {[()]}(b) ([ )](c) {( )}(d) { [ ] }The query is from Application of Stacks topic in chapter Application of Stacks of Data Structures & Algorithms II got this question by my school teacher while I was bunking the class. |
|
Answer» CORRECT OPTION is (B) ([ )] For explanation: ([ )] is INCORRECT because’)’ occurs before the corresponding ‘]’ is encountered. |
|