The best data structure to check whether an arithmetic expression has balanced…

GATE · 2004 · CSISRO Scientist/Engineer SC · May 2017 · Computer Science

The best data structure to check whether an arithmetic expression has balanced parentheses is a

  1. A.

    queue

  2. B.

    stack

  3. C.

    tree

  4. D.

    list

Attempted by 3443 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…