Ad
  • Custom User Avatar

    this translation is unpublished and cannot currently be approved, and its author is inactive

  • Custom User Avatar

    Superceded by above

  • Custom User Avatar

    Very good kata :>

  • Custom User Avatar

    What does your solution return for up_array([])? It should return None.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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

  • Custom User Avatar

    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.

  • Custom User Avatar

    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?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I don't think it is necessary.

  • Custom User Avatar

    As simple as that.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...