Stacks on Data Structure and Algorithms related Questions and Answers


Question :   What should be done when an opening parentheses is read in a balancing symbols algorithm?
1. push it on to the stack
2. throw an error
3. ignore the parentheses
4. pop the stack
Answer :   1 - push it on to the stack  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter