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.
I solved this kata in python.And based on recursive concept, you only to know how to solve the case that runs == 1.
This comment is hidden because it contains spoiler information about the solution
I am really confused about this Kata, how to sort the numbers ?
I surprisingly found that the remainders appear reguarly. and they are From 1 to m-1 ,which are in int(n/m) times loop.(the largest integer <= n/m).
thx, I have another question, can the number appears in other location except the end of the input
Since "foobar099" should become "foobar100" by running this funcation.
Then if I input "foobar0199", what is the standard return value ? "foobar0200" or "foobar200" ?
I met the same problem, I guess that there are something that you did't consider in your codes.
it is much more easier and cleverer than my codes.
why do you use global sum_num ?