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.
Prolog translation
I think I don't get what should be the pattern for the grandchild.
If child has to get 1 or 2 diffrences that mean grandichild should get from 0 (because they could cancel out) to 4. Is my logic correct ?
I was going in a similar direction but your is way cleaner.
agree with you!
This comment is hidden because it contains spoiler information about the solution
niu bi
"I can't pass the tests" is not an issue.
Thank you for the feedback. It made me smile.
I'm 32 now and have been coding since I was 15 or 16.
Your code is not performant enough with long array input. I'm closing this one, find a way to not create a big array like you're doing.
I see. I will be more humble in the future.
Thank you for your comment.
When a kata is first published in a given language, the author has to provide a solution in that language and it has to pass all of the tests that you're currently trying to pass. Additionally, 1517 people have successfully completed this kata in JavaScript since it was published. I don't know what proof you could get that would be better than that :)
I saw other guy who wrote code in JS and had the same issue.
I think the number of loops declare in a test is just to big for JS to handle and that is the issue.
My function is quite simple so I don't any doubts.
I added my code in comment above with spoiler warnning. I would be happy if you prove me wrong.
This comment is hidden because it contains spoiler information about the solution
Doubtable, over 1k ppl have done this and they all had no problems. doubt they were all wrong and you alone are right.
It's most definitely a problem with your code
This comment is hidden because it contains spoiler information about the solution
Loading more items...