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 have same issue. Don't know why. For x=8 and given m=11110584286373380831 and n=908 number of combinations according to the formula is comb_num=11110584286373380096.0. Which is not equal (comb_num != m). Same for other x in range(n+1). Getting x=-1 when it is said that right answer is x=8. Using Python.
Guess it's because of precision issues.
This comment is hidden because it contains spoiler information about the solution
I have this problem. The ones that work are passing, but the ones that should be impossible are producing a string.
I've already forfeited and looked at the solutions as I was spending way too long on this, but I can't for the life of me figure out why what I
did doesn't work even though it's extremely similar to the solution listed first.
Because you need to follow the steps, first get the smallest i, and then the smallest j.
This is explained in the description, read it again.
In that other case, to get the smallest number you can get moving only one digit, your only choice is to move the 0 to the front.