r/dailyprogrammer • u/nottoobadguy • Feb 17 '12
[2/17/2012] Challenge #9 [easy]
write a program that will allow the user to input digits, and arrange them in numerical order.
for extra credit, have it also arrange strings in alphabetical order
7
Upvotes
5
u/stevelosh Feb 17 '12 edited Feb 17 '12
Shell:
EDIT: Add case-insensitive sorting.
2
u/[deleted] Feb 17 '12
2
u/StorkBaby 0 0 Feb 17 '12
Python digits = []
2
u/[deleted] Feb 18 '12
Node.js :
1
u/SleepyTurtle Feb 17 '12
This is the last exercise in the khan academy computer programming sequence (in python). If this kind of program isn't immediately obvious to you (certainly wasn't for me) watch the videos where he goes through it. Really useful. I hope he continues the series.
1
u/blisse Feb 17 '12 edited Feb 17 '12
straightforward in python
as short as I can go
1
u/drb226 0 0 Feb 17 '12
Haskell:
Usage:
1
u/bigmell Feb 20 '12
Perl
1
u/sanitizeyourhands Mar 08 '12
My not so great C# solution, but hey it works and it's commented.
=)
1
u/lil_nate_dogg Mar 08 '12
1
u/[deleted] Aug 13 '12
Python: and late to the party (w/ credit)
1
u/ragtag_creature Dec 12 '22
R: