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.
This comment is hidden because it contains spoiler information about the solution
Approved by someone
so good, i nailed it.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I was just going to point out - good thinking Henry!
Nice! I used a reduce. But this is even more efficient. well done!
it asks just what it asks. it does not ask to foresee absence of the "needle"
Quite simply done
I think this is a good strategy but wouldnt it be better to cater for a case when an array that doesnt contain needle
if it does't find the needle then what? test fails! should explicitly check for if a needle is really present.
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 comment is hidden because it contains spoiler information about the solution
Those methods use a callback function and the first one might be useful here and the other one isn't. It's easier this way.
Loading more items...