The data structure required to check whether an expression contains balanced parenthesis is?

Q & AThe data structure required to check whether an expression contains balanced parenthesis is?
Admin Staff asked 4 years ago

The data structure required to check whether an expression contains balanced parenthesis is?
a) Stack
b) Queue
c) Array
d) Tree

1 Answers
Admin Staff answered 4 years ago

a) Stack