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.
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.
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.
This comment is hidden because it contains spoiler information about the solution
yep , that checks out. ty for info
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 square14
(good), but then with the remaining14x6
rectangle, you somehow conclude that the next square is9
. No idea where you get that number from.This is not an issue. Please revisit your logic.
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 ]