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.
Superceded by above
Very good kata :>
What does your solution return for
up_array([])
? It should returnNone
.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Test cases for random numbers sometimes does not include the possibility of having 9 digits in the middle of the number. If this happens, sometimes code accomplish well the task because these random tests are missing and in other cases it will fail in these cases.
Examples like 9999 -> 10000, 999 -> 1000, 99 -> 100, 9 -> 10
Programming Language: C
The description could use an example like [9,9] => [1,0,0], showing that the length of the returned array is expected to change.
Otherwise, this behaviour can come as a bit of a surprise for more staticly types languages.
It seems you are testing the current top voted solution - are you running it with some of the #commented_out tests?
There is one test:
test.assert_equals(up_array([3.14, 1.41, 2.72]), None);
that will cause a ValueError, but this test is commented-out in the test suite so should not run when you press Attempt (unless you deleted the # comment part) - maybe you un-commented it?
This comment is hidden because it contains spoiler information about the solution
I am sorry but I do not understand exactly what's the problem. Does you solution not work? Or maybe some solution from "Solutions" page does not work? Which one?
This comment is hidden because it contains spoiler information about the solution
I don't think it is necessary.
As simple as that.
This comment is hidden because it contains spoiler information about the solution
Approved.
Loading more items...