Question DSA-STK-0021
MediumIn the shunting-yard algorithm that converts infix to postfix, what is held on the stack?
- A.
Operands only
- B.
Operators and opening brackets
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Stacks question
In the shunting-yard algorithm that converts infix to postfix, what is held on the stack?
Operands only
Operators and opening brackets
Sign up free to see the answer and a step-by-step explanation.
The finished postfix expression
Nothing; it uses a queue