Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
:) sorry, you are right
Are you sure? "10003" is lexicographically smaller than "22", isnt it?
Which of these two comes first when sorted in dictionary/lexicographical/alpbabetical order?
but string '10003' > '22'
This comment is hidden because it contains spoiler information about the solution
Your code is wrong for those conditions.
Not a kata issue, read the conditions in the description again.
.
11 comes before 2000 because it's sorted like a word, comparing characters starting from the left: "1" comes before "2".
10003 comes after 11 and 2000 because 1 + 1 and 2 + 0 + 0 + 0 are 2, and 1 + 0 + 0 + 0 + 3 is 4.