Ad
  • Default User Avatar

    Thanks for comment , I went back to recheck. I was so sure that I saw to equal with 5 digits. I managed to pass all tests now.

  • Default User Avatar

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

  • Default User Avatar

    yep , that checks out. ty for info

  • Default User Avatar

    In my opinion this kata has a lot correct answers. it should be corrected or disabled.
    Example of "wrong" solutions compared to what I got (IMHO my solutions are cleaner):

    EXAMPLE 1
    my solution : [ 14, 9, 1, 1, 1 ]
    correct solution : [ 14, 6, 6, 2, 2, 2 ]

    EXAMPLE 2
    my solution : [ 9, 4, 1, 1 ]
    correct solution : [ 9, 2, 2, 2, 2, 1, 1 ]

    EXAMPLE 3
    my solution : [ 155, 51, 5, 3 ]
    correct solution : [ 155, 17, 17, 17, 17, 17, 17, 17, 17, 17, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1 ]

    and my favourite
    my solution : [ 19, 4, 1, 1, 1 ]
    correct solution : [ 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]