|
|
|
|
|
by BobKabob
5572 days ago
|
|
How about this Python solution: z="0123456789"
print map(lambda x:int("".join(x))+1,zip(sorted(zip(*z)[0]*100),
sorted(zip(*z)[0]*10)*10,
zip(*z)[0]*100))
Only downside is that it prints as a list (so it has the format of [1,2,3..]) |
|
Then I map it to the new print function that is available in Python 3.0, or with the import statement.
A simpler version would use range, but that seems a little too simple:
Now that I think about it, this last one is the right answer!