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 _______.

  1. A.

    2 deletions and 3 additions

  2. B.

    3 deletions and 3 additions

  3. C.

    4 deletions and 4 additions

  4. D.

    More than one of the above

  5. E.

    None of the above

Attempted by 88 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…