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.
if you are using python remember to use the function round to just show to decimals after doing the operations
This comment is hidden because it contains spoiler information about the solution
Could do with clearer description in C. Having *length_out and digits[0] already set and then the comments next to it made it confusing when the kata itself is really simple.
yeah worked thanks bro
Did work.
This comment is hidden because it contains spoiler information about the solution
maked
Translate Dart
The issue is with your code. It appears you looked up the conversion factor for mpg to kpl online, but that number isn't precise enough. You should use the numbers provided in the description to solve the kata. The numbers that you see in the test results that have more decimal places than necessary is due to the fact that some floating point numbers cannot be precisely represented in binary. Your solution also generates numbers like this. You will see them if you hit the attempt button a few times with your current solution.
The function calls for returning a double, but you're converting your return value to a float. Due to the differences in their binary representations of 12.74, the two values are not equal. The kata should be using an approximate equality comparison for its tests, but that issue has already been noted below.
Based on the problem description and the testing code (assert.deepEqual(digitize(35231), [1, 3, 2, 5, 3]);), n is implied to be a number, not an array or string. :)
very easy but fun kata
one on the expected answers with c has a 1 all the way in the 10thousandths place.
Enabled in this fork
This comment is hidden because it contains spoiler information about the solution
Loading more items...