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.
With v1=80, v2=91 and g=37
I get mins: 21,818181818181827, so I round to 22.
Test fails because 21 is expected.
Fair enough, I remove rounding and then...
With v1=820, v2=850, and g=550
I get mins 19,99999999999993, so I return 19 (not rounded) and it happens to expect 20.
I also think the expected test results are not quite correct; can anybody also confirm?
Thanks!
Jaime
This comment is hidden because it contains spoiler information about the solution
This coder understood the mechanism behind the encryption / decryption; recursion makes it very elegant.