Page 1 of 1

What should be done when an opening parentheses is read in a balancing symbols algorithm?

Posted: Wed Jul 13, 2022 7:41 pm
by answerhappygod
a) push it on to the stack
b) throw an error
c) ignore the parentheses
d) pop the stack