Open In App

GATE | GATE-CS-2004 | Question 5

Like Article
Like
Save
Share
Report

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
Previous
Next
Share your thoughts in the comments
Similar Reads