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.
This comment is hidden because it contains spoiler information about the solution
should be no 1
Huge thanks for those few who came up with this (double dabble) algorithm. Today I learned something new.
I think the best way to get your head around it is to look at it as a reverse of decimal to binary process.
Decimal to binary (https://www.cuemath.com/numbers/decimal-to-binary/):
To convert 13 to binary you need to:
So if we get remainders from bottom to top we end up with 1101, which is a binary representation of 13
If we use double dabble method, then we just put the above process in reverse.
One note: when using double dabble method we always start wit 0 * 2 (as there is no previous digit to the left-most digit of the binary number)
Hope this helps...
Makes perfect sense!
Thank you!
This comment is hidden because it contains spoiler information about the solution