+ 1
Sorting a Deque
I need to sort a deque by name. Please help.
1 Answer
+ 3
I have a small C++ program that sorts name alphabetically, Here's the link...
https://code.sololearn.com/cr317vwrGmE1/#cpp
When running from sololearn code playground first input a number (say 4) and then type some names separated by at-least one space.
If it is useful to you, you can customize the code for your requirement. The general approach remains the same.
Enjoy ;-)