What would be the output after performing the following operations in a Deque?…

What would be the output after performing the following operations in a Deque?

Insertfront(10);

Insertfront(20);

Insertrear(30);

Insertrear(40);

Deletefront();

Insertfront(50);

Deleterear();

Display();

  1. A.

    10, 20, 30

  2. B.

    50, 10, 30

  3. C.

    40, 20, 30

  4. D.

    None of the above

Attempted by 391 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…