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

PYQ GATE 2004

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 4071 students.

Sign up free to check your answer

Sign up free

Explore the full course: Data Structures

Loading lesson…