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

  • Custom User Avatar

    it clearly says ,answer must be 6 characters long.

    Look clearly at the error message you provided.
    expected 'F22F7' to equal '0F22F7'

    The expected answer is on the right side. The left side is the output of your function. So, the one that outputs the string with length 5 is your function. This is not kata issue.

  • Custom User Avatar

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

  • Custom User Avatar

    yep , that checks out. ty for info

  • Custom User Avatar

    I don't know what to say except that you're just wrong. Furthermore, you justify your position (twice) with "opinion". Correctness isn't a matter of opinion, though.

    For example, in a rectangle 14x20, you find the square 14 (good), but then with the remaining 14x6 rectangle, you somehow conclude that the next square is 9. No idea where you get that number from.

    This is not an issue. Please revisit your logic.

  • Custom 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 ]