Closed shubhamsharma6701 closed 3 years ago
Given a deque of size N, we need to delete elements from its front end one-by-one depending upon the user's choice.
Input:
2 3 5 6 1
Output:
3 5 6 1 Do you wish to delete one more element(y/n)?y
5 6 1 Do you wish to delete one more element(y/n)?y
6 1 Do you wish to delete one more element(y/n)?n
Note - The program will also notify when the deque will become empty.
are you working on this issue?
The code for this issue has already been added in the deque folder.
Given a deque of size N, we need to delete elements from its front end one-by-one depending upon the user's choice.
Input:
2 3 5 6 1
Output:
3 5 6 1 Do you wish to delete one more element(y/n)?y
5 6 1 Do you wish to delete one more element(y/n)?y
6 1 Do you wish to delete one more element(y/n)?n
Note - The program will also notify when the deque will become empty.