Open In App

GATE | GATE-CS-2004 | Question 5

The best data structure to check whether an arithmetic expression has balanced parentheses is a
(A) queue
(B) stack
(C) tree
(D) list

Answer: (B)
Explanation: See question 2 https://www.geeksforgeeks.org/data-structures-and-algorithms-set-3-2/amp/
Quiz of this Question

Article Tags :