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.
Think the idea of sorting was applied here
I always try to solve problems like that just like you at first. Avoiding to use built in functions or methods. Kudos my friend.
The one problem in this case is that if you pass a really long string of numbers, the program could take a while to run trough every str(number).
It could have been much shorter.
This is some answer!
Because you do not move through the input like that.
why use while loop instead of for loop?
This comment is hidden because it contains spoiler information about the solution
This would really benefit from using a for loop instad of a while loop
too long didnt read :)
thanks <3
This comment is hidden because it contains spoiler information about the solution
this is painful
Using the index and length is really elegant.
string.split() already returns an array(list)....
This comment is hidden because it contains spoiler information about the solution
Loading more items...