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();
- A.
10, 20, 30
- B.
50, 10, 30
- C.
40, 20, 30
- D.
None of the above
Attempted by 391 students.
Sign up free to check your answer
Sign up freeLoading lesson…