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.
The result is not need to be sequential!!! LOL
This doesn't work for odd numbers:
This comment is hidden because it contains spoiler information about the solution
You may need to learn more about number systems (bases or radix) and/or maths in general. The underlying concept is not elementary mathematics, even though the coding part is very basic.
you may start here: https://www.mathsisfun.com/numbers/bases.html
@anter69, that didn't help at all. Can you tell me how they get 21 from 39 using this "base 16" (according to wikipedia base 16 is 42, numbers from 0-9 + letters in alphabet). 42-39 is 3, multiplying will only make it go higher so really, hot to get 21 with 39 and 42?
This comment is hidden because it contains spoiler information about the solution
How to understand "39? That's just 21, in base 19!"?
This comment is hidden because it contains spoiler information about the solution
Python translation:
https://www.codewars.com/kumite/5e7a181619c7a5001fef1e25?sel=5e7a181619c7a5001fef1e25
This comment is hidden because it contains spoiler information about the solution