A queue has configuration a, b, c, d. If you want to get the configuration d,…
BPSC TRE · TRE 3.0 · PGT (Classes 11–12) · Computer Science · 22 Jul 2024 · Shift 1 · SubjectModified — slightly modified from the official paper; see the solution
A queue has configuration a, b, c, d. If you want to get the configuration d, c, b, a, using an auxiliary stack to hold removed elements, you need a minimum of _______.
- A.
2 deletions and 3 additions
- B.
3 deletions and 3 additions
- C.
4 deletions and 4 additions
- D.
More than one of the above
- E.
None of the above
Attempted by 88 students.
Sign up free to check your answer
Sign up freeLoading lesson…