| The data structure required to check whether an expression contains a balanced parenthesis is?
Choose the correct option from below list
(1)Queue
(2)Stack
(3)Tree
(4)Array
Answer:-(2)Stack
Note:-The stack is a simple data structure in which elements are added and removed based on the LIFO principle. | | |