Ad
  • 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

  • Default 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.

  • Default 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

    I wish there was some warning with this Kata on BigInt in Javascript, I'd never heard of it before and wasted so much time writing a function only to discover it would never have worked.

    Please maybe add a warning as I'm not the only person here to discover this.

  • 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

  • Custom User Avatar

    Approved.

  • Loading more items...