GATE CS 2004 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0240

The best data structure to check whether an arithmetic expression has balanced parenthesis is a:
  1. A
    Queue
  2. B
    Stack
  3. C
    Tree
  4. D
    List

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/128743/isro2017-59

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com