Question: [ 4 Marks ] Write a code to create generic data structure called deque which consists of a list of items. The following operations are
Marks
Write a code to create generic data structure called deque which consists of a list of items. The following operations are performed in deque
a push : Insert item on the front of the deque.
b pop : Remove the front item from the deque and return it
c inject : Insert item on the rear end of the deque.
d ejectx: Remove the rear item from the deque and return it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
