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.
A simple kata made extremely confusing by the fact that days are numbered from 0, so the first day is n = 0. In other words 1 == 0!!!
Nice challenge - not too difficult but needs to be efficient!
My solution 43ms in Ruby!
It seems to me that 209917 --> 29917, 1, 0 is a much more logical answer than 29917, 0, 1. By always moving a digit towards the left it removes any ambiguity about where it should be inserted. If you move a digit to the right is the destination index the position in the original number or in the number produced after removing the digit to be moved? In this case if you remove the leading 2 you're left with the number 9917 (leading zero ignored in a number) and you might therfore produce a number 92917!!
Sorry, but IMO your talking complete rubbish! No offence intended. The clarity of the instructions should not be related to the difficulty of the challenge. Authors and translators should take responsibility for ensuring that their instructions are understandable particularly when English may not be the first language of many members.