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.
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.
This comment is hidden because it contains spoiler information about the solution
I see. I will be more humble in the future.
Thank you for your comment.
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
This comment is hidden because it contains spoiler information about the solution
That is a realy amazing solution. I saw in a earlier comment that you did it in a hurry.
I am interested how many years take to became so good at this?