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/
Quiz of this Question
Last Updated :
28 Jun, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...