Ankit152 / CPP-STL

A repository to understand C++ STL and use it in coding interviews and coding contests.
6 stars 13 forks source link

Deletion from deque #45

Closed shubhamsharma6701 closed 3 years ago

shubhamsharma6701 commented 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.

Ankit152 commented 3 years ago

are you working on this issue?

shubhamsharma6701 commented 3 years ago

The code for this issue has already been added in the deque folder.