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've been putting these off because they sounded scary, but it ended up being a lot of fun! Thanks =)
Yeah, that was painful.
I was just coming in to say thanks for such a nice setup and explanation. I had been avoiding it for awhile because of the word queue, and was pleasantly surprised with a straightforward explanation and challenge.
It was definitely pretty easy, but most of the time I see katas that introduce a new topic I bang my head against them and eventually have to go look at the answers to see what I need to go look up.
This comment is hidden because it contains spoiler information about the solution
The spread operator is ES6
I'm pretty sure the only difference in ES5 would be using Apply:
Math.max.apply(arr)
instead of
Math.max(...arr)
This comment is hidden because it contains spoiler information about the solution
Fun one, thanks!
n/n*n
is ruling out the undefined/NaN cases?Fun one, thank you!
Ah very clever! I feel like this should have more votes.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
this.children = this.children || [];
how does this allow the function to retain the value of children between calls?
i thought it was just storing it on the object, but the or is required.
Ah thank you! I see my mistake now =D
I just wanted to say thank you for such beautiful description and test cases for this kata.
It was a pleasure to work through and I could just enjoy learning and programming instead of trying to decypher missing information.
Loading more items...