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.
Same problem here. I had to translate to JavaScript to solve this kata (the same code passed all the tests there).
Test against the lyrics does not include the last paragraph and the dot before it: ".
No more bottles of beer on the wall, no more bottles of beer.
Go to the store and buy some more, 99 bottles of beer on the wall."
Sample test should instantiate the class or the initial function should be made static.
I think "numbers" should be replaced with "digits" to actually reflect what it is expected. Otherwise, a nice 7kyu kata :).
This comment is hidden because it contains spoiler information about the solution
Oh, now it is clear. Thanks.
Test for: n=218303231
Expected: '83119', instead got: '8511'
218303231 = b1101000000110000101011111111 (28 digits) => half has 14 digits => cannot be greater than 2^14. Or the round operation can step in even for this case?
It is not clear.
Sorry. I forgot a ; before the WITH, so I guess it parsed an empty query as the first one.
This comment is hidden because it contains spoiler information about the solution