Sorting a Deque | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Sorting a Deque

I need to sort a deque by name. Please help.

3rd Apr 2017, 9:51 PM
Christian - avatar
1 Answer
+ 3
I have a small C++ program that sorts name alphabetically, Here's the link... 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 ;-)
5th Apr 2017, 7:59 AM
Renjith M
Renjith M - avatar